@@ -232,24 +232,24 @@ endif
232232# Priority is given to
233233# 1 user explicit set with variable in Makefile or command line, for instance setting OPENROAD_EXE
234234# 2 ORFS compiled tools: openroad, yosys
235- ifneq (${IN_NIX_SHELL}, "" )
236- export OPENROAD_EXE := $(shell which openroad)
235+ ifneq (${IN_NIX_SHELL},)
236+ export OPENROAD_EXE := $(shell command -v openroad)
237237else
238238 export OPENROAD_EXE ?= $(abspath $(FLOW_HOME ) /../tools/install/OpenROAD/bin/openroad)
239239endif
240- ifneq (${IN_NIX_SHELL}, "" )
241- export OPENSTA_EXE := $(shell which opensta )
240+ ifneq (${IN_NIX_SHELL},)
241+ export OPENSTA_EXE := $(shell command -v sta )
242242else
243- export OPENSTA_EXE ?= $(abspath $(FLOW_HOME ) /../tools/install/OpenROAD/bin/opensta )
243+ export OPENSTA_EXE ?= $(abspath $(FLOW_HOME ) /../tools/install/OpenROAD/bin/sta )
244244endif
245245
246246OPENROAD_ARGS = -no_init -threads $(NUM_CORES ) $(OR_ARGS )
247247OPENROAD_CMD = $(OPENROAD_EXE ) -exit $(OPENROAD_ARGS )
248248OPENROAD_NO_EXIT_CMD = $(OPENROAD_EXE ) $(OPENROAD_ARGS )
249249OPENROAD_GUI_CMD = $(OPENROAD_EXE ) -gui $(OR_ARGS )
250250
251- ifneq (${IN_NIX_SHELL}, "" )
252- YOSYS_EXE := $(shell which yosys)
251+ ifneq (${IN_NIX_SHELL},)
252+ YOSYS_EXE := $(shell command -v yosys)
253253else
254254 YOSYS_EXE ?= $(abspath $(FLOW_HOME ) /../tools/install/yosys/bin/yosys)
255255endif
0 commit comments