From: Jean-François Nguyen Date: Fri, 2 Nov 2018 13:22:44 +0000 (+0100) Subject: build/sim/verilator: don't use --threads when $(THREADS) is unset X-Git-Tag: 24jan2021_ls180~1522^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dcbe759b6434872b0e91ff825579623e96f3defc;p=litex.git build/sim/verilator: don't use --threads when $(THREADS) is unset --- 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)