Skip to content

Commit

Permalink
etc: DependencyInstaller: Add option for constant build path to incre…
Browse files Browse the repository at this point in the history
…ase build reproducibility

Signed-off-by: Eryk Szpotanski <eszpotanski@antmicro.com>
  • Loading branch information
eszpotanski authored and glatosinski committed Sep 10, 2024
1 parent 45dd89b commit 09da768
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions etc/DependencyInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,9 @@ Usage: $0
# Installs dependencies required to run CI
$0 -nocert
# Disable certificate checks
$0 -constant-build-dir
# Use constant build directory, instead of
# random one.
EOF
exit "${1:-1}"
Expand Down Expand Up @@ -776,6 +779,14 @@ while [ "$#" -gt 0 ]; do
export PREFIX="${HOME}/.local"
export isLocal="true"
;;
-constant-build-dir)
baseDir="/tmp/DependencyInstaller-OpenROAD"
if [[ -d "$baseDir" ]]; then
echo "INFO: removing old building directory $baseDir"
rm -r "$baseDir"
fi
mkdir -p "$baseDir"
;;
-prefix=*)
if [[ ! -z ${PREFIX} ]]; then
echo "WARNING: previous argument -local will be overwritten with -prefix"
Expand Down

0 comments on commit 09da768

Please sign in to comment.