Skip to content

Commit 31fca7b

Browse files
committed
makefile: OPENROAD_EXE is now an env var
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent cd6f595 commit 31fca7b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

flow/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ endif
269269
# Priority is given to
270270
# 1 user include path to the executable prior to running make
271271
# 2 user explicit set with variable in Makefile or command line
272-
OPENROAD_EXE ?= $(shell command -v openroad)
272+
export OPENROAD_EXE ?= $(shell command -v openroad)
273273
ifeq ($(OPENROAD_EXE),)
274-
OPENROAD_EXE = $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/openroad)
274+
export OPENROAD_EXE = $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/openroad)
275275
endif
276276
OPENROAD_ARGS = -no_init $(OR_ARGS)
277277
OPENROAD_CMD = $(OPENROAD_EXE) -exit $(OPENROAD_ARGS)

flow/util/utils.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ command:
120120

121121
## Provide easy access to debugging
122122
ifdef GDB
123-
OPENROAD_EXE := gdb --args $(OPENROAD_EXE)
123+
export OPENROAD_EXE := gdb --args $(OPENROAD_EXE)
124124
endif
125125

126126
## Provide easy way to run valgrind
127127
ifdef VALGRIND
128-
OPENROAD_EXE := valgrind $(VALGRIND_ARGS) $(OPENROAD_EXE)
128+
export OPENROAD_EXE := valgrind $(VALGRIND_ARGS) $(OPENROAD_EXE)
129129
endif
130130

131131
## Convert RVE DRC database to JSON

0 commit comments

Comments
 (0)