Skip to content

Commit 408e057

Browse files
bazel: fix install script default path for standalone builds
Change default DEST_DIR from orfs-specific path to workspace-local path. The previous default assumed OpenROAD was part of OpenROAD-flow-scripts. Users can now: - Install to default: bazel run :install - Install to custom: bazel run :install -- /custom/path Fixes #9775 Signed-off-by: alokkumardalei-wq <alokkumardalei2@gmail.com>
1 parent 351788d commit 408e057

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bazel/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
set -e
33

44
# Install binary and runfiles from bazel build
5+
# Usage: bazel run :install -- [DEST_DIR]
6+
# Default: installs to ./bazel-install in the workspace root
57

68
TARFILE=$(cd $BUILD_WORKSPACE_DIRECTORY; bazelisk info bazel-bin)/openroad.tar
79

8-
DEST_DIR=${1:-${BUILD_WORKSPACE_DIRECTORY}/../install/OpenROAD/bin}
10+
DEST_DIR=${1:-${BUILD_WORKSPACE_DIRECTORY}/bazel-install}
911

1012
mkdir -p "$DEST_DIR"
1113
cp -f "$TARFILE" "$DEST_DIR"

0 commit comments

Comments
 (0)