Skip to content

Commit 7ffad9e

Browse files
committed
bazel: add bazel build hack tip
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent ed05b57 commit 7ffad9e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/user/BuildLocally.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ cd OpenROAD-flow-scripts
1212
sudo ./setup.sh
1313
```
1414

15+
## Using Bazel to build OpenROAD and run the ORFS flow
16+
17+
Long story short: OpenROAD will eventually switch to using Bazel for downloading dependencies and building OpenROAD for all the reasons that the DependencyInstaller.sh and cmake are hard to support and brittle across platforms.
18+
19+
Currently the simplest way to build OpenROAD and run ORFS is to run one test, which will download all OpenROAD dependencies and build OpenROAD in the exec configuration:
20+
21+
``` shell
22+
cd tools/OpenROAD
23+
bazelisk test src/drt/...
24+
cd ../flow
25+
make OPENROAD_EXE=$(pwd)/../tools/OpenROAD/bazel-out/k8-opt-exec-ST-*/bin/openroad
26+
```
27+
28+
Bazel could similarly be used to download and make available pre-built binaries for tools such as Yosys, eqy and KLayout.
29+
1530
## Build
1631

1732
``` shell

0 commit comments

Comments
 (0)