From dcbe759b6434872b0e91ff825579623e96f3defc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Fran=C3=A7ois=20Nguyen?= Date: Fri, 2 Nov 2018 14:22:44 +0100 Subject: [PATCH] build/sim/verilator: don't use --threads when $(THREADS) is unset --- litex/build/sim/core/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/build/sim/core/Makefile b/litex/build/sim/core/Makefile index daba3dda..4be325ca 100644 --- a/litex/build/sim/core/Makefile +++ b/litex/build/sim/core/Makefile @@ -27,7 +27,7 @@ sim: mkdir $(OBJS_SIM) verilator -Wno-fatal -O3 --cc dut.v --top-module dut --exe \ $(SRCS_SIM_CPP) $(OBJS_SIM) \ --top-module dut \ - --threads $(THREADS) \ + $(if $(THREADS), --threads $(THREADS),) \ -CFLAGS "$(CFLAGS) -I$(SRC_DIR)" \ -LDFLAGS "$(LDFLAGS)" \ -trace $(INC_DIR) -- 2.30.2