Skip to content

Commit

Permalink
Makefile: use env for time
Browse files Browse the repository at this point in the history
Signed-off-by: Emil J. Tywoniak <emil@tywoniak.eu>
  • Loading branch information
widlarizer committed Oct 10, 2024
1 parent 7b4e7aa commit b1bc55a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ YOSYS_FLAGS += -v 3

#-------------------------------------------------------------------------------
# setup all commands used within this flow
export TIME_BIN ?= /usr/bin/time
export TIME_BIN ?= env time
TIME_CMD = $(TIME_BIN) -f 'Elapsed time: %E[h:]min:sec. CPU time: user %U sys %S (%P). Peak memory: %MKB.'
TIME_TEST = $(shell $(TIME_CMD) echo foo 2>/dev/null)
ifeq (,$(strip $(TIME_TEST)))
Expand Down

0 comments on commit b1bc55a

Please sign in to comment.