build/sim/verilator: don't use --threads when $(THREADS) is unset

This commit is contained in:
Jean-François Nguyen 2018-11-02 14:22:44 +01:00
parent 6f38213acc
commit dcbe759b64

View file

@ -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)