Skip to content

Commit f977e90

Browse files
committed
make: prefer bazel built OpenROAD/sta
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 961ba3f commit f977e90

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

‎flow/scripts/variables.mk‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,20 @@ export TIME_CMD
8989
ifneq (${IN_NIX_SHELL},)
9090
export OPENROAD_EXE ?= $(shell command -v openroad)
9191
else
92-
export OPENROAD_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/openroad)
92+
ifneq ($(wildcard $(FLOW_HOME)/../tools/OpenROAD/bazel-bin/openroad),)
93+
export OPENROAD_EXE ?= $(abspath $(FLOW_HOME)/../tools/OpenROAD/bazel-bin/openroad)
94+
else
95+
export OPENROAD_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/openroad)
96+
endif
9397
endif
9498
ifneq (${IN_NIX_SHELL},)
9599
export OPENSTA_EXE ?= $(shell command -v sta)
96100
else
97-
export OPENSTA_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/sta)
101+
ifneq ($(wildcard $(FLOW_HOME)/../tools/OpenROAD/bazel-bin/sta),)
102+
export OPENSTA_EXE ?= $(abspath $(FLOW_HOME)/../tools/OpenROAD/bazel-bin/sta)
103+
else
104+
export OPENSTA_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/sta)
105+
endif
98106
endif
99107

100108
OPENROAD_IS_VALID := $(if $(OPENROAD_EXE),$(shell test -x $(OPENROAD_EXE) && echo "true"),)

0 commit comments

Comments
 (0)