3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-06-29 03:58:50 +00:00

Add VERBOSE (and V) option to Makefiles

This commit is contained in:
Miodrag Milanovic 2026-06-15 14:48:11 +02:00
parent 90ead9bbc2
commit 2bab5d3fa5
2 changed files with 11 additions and 5 deletions

View file

@ -28,6 +28,12 @@ export YOSYS_MAX_THREADS
export LLVM_PROFILE_FILE
export LLVM_PROFILE_FILE_BUFFER_SIZE=0
ifeq ($(or $(V),$(VERBOSE)),1)
QUIET :=
else
QUIET := >/dev/null 2>&1
endif
all:
ifndef OVERRIDE_MAIN
@ -38,7 +44,7 @@ endif
define run_test
@set -e; \
rc=0; \
( set -e; $(2) ) >/dev/null 2>&1 || rc=$$?; \
( set -e; $(2) ) $(QUIET) || rc=$$?; \
if [ $$rc -eq 0 ]; then \
echo "PASS $1"; \
echo PASS > $1.result; \