Skip to content

Commit 9020c2a

Browse files
authored
Merge pull request The-OpenROAD-Project#1983 from habibayassin/time-cmd-arg
makefile: use argument for time bin
2 parents f6af8ad + d14898a commit 9020c2a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

flow/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,11 @@ YOSYS_FLAGS += -v 3
275275

276276
#-------------------------------------------------------------------------------
277277
# setup all commands used within this flow
278-
TIME_CMD = /usr/bin/time -f 'Elapsed time: %E[h:]min:sec. CPU time: user %U sys %S (%P). Peak memory: %MKB.'
278+
export TIME_BIN ?= /usr/bin/time
279+
TIME_CMD = $(TIME_BIN) -f 'Elapsed time: %E[h:]min:sec. CPU time: user %U sys %S (%P). Peak memory: %MKB.'
279280
TIME_TEST = $(shell $(TIME_CMD) echo foo 2>/dev/null)
280281
ifeq (, $(strip $(TIME_TEST)))
281-
TIME_CMD = /usr/bin/time
282+
TIME_CMD = $(TIME_BIN)
282283
endif
283284

284285
# The following determine the executable location for each tool used by this flow.

0 commit comments

Comments
 (0)