From f977e90993947c467670210701b96fc84f39decf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Fri, 16 Jan 2026 07:06:03 +0100 Subject: [PATCH] make: prefer bazel built OpenROAD/sta MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- flow/scripts/variables.mk | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/flow/scripts/variables.mk b/flow/scripts/variables.mk index 81de8d10e8..33b3c8f2df 100644 --- a/flow/scripts/variables.mk +++ b/flow/scripts/variables.mk @@ -89,12 +89,20 @@ export TIME_CMD ifneq (${IN_NIX_SHELL},) export OPENROAD_EXE ?= $(shell command -v openroad) else - export OPENROAD_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/openroad) + ifneq ($(wildcard $(FLOW_HOME)/../tools/OpenROAD/bazel-bin/openroad),) + export OPENROAD_EXE ?= $(abspath $(FLOW_HOME)/../tools/OpenROAD/bazel-bin/openroad) + else + export OPENROAD_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/openroad) + endif endif ifneq (${IN_NIX_SHELL},) export OPENSTA_EXE ?= $(shell command -v sta) else - export OPENSTA_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/sta) + ifneq ($(wildcard $(FLOW_HOME)/../tools/OpenROAD/bazel-bin/sta),) + export OPENSTA_EXE ?= $(abspath $(FLOW_HOME)/../tools/OpenROAD/bazel-bin/sta) + else + export OPENSTA_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/sta) + endif endif OPENROAD_IS_VALID := $(if $(OPENROAD_EXE),$(shell test -x $(OPENROAD_EXE) && echo "true"),)