From: Florent Kermarrec Date: Sat, 27 Oct 2018 09:06:34 +0000 (+0200) Subject: build/sim/verilator: don't use THEADS parameters when threads=1 X-Git-Tag: 24jan2021_ls180~1558 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3935b481e9de6b1189408869867a6a099d1dae1;p=litex.git build/sim/verilator: don't use THEADS parameters when threads=1 Allow using old (non multi-threaded) version of Verilator --- diff --git a/litex/build/sim/verilator.py b/litex/build/sim/verilator.py index 833685e1..608a2f62 100644 --- a/litex/build/sim/verilator.py +++ b/litex/build/sim/verilator.py @@ -107,9 +107,9 @@ def _build_sim(platform, build_name, threads, verbose): makefile = os.path.join(core_directory, 'Makefile') build_script_contents = """\ rm -rf obj_dir/ -make -C . -f {} THREADS={} +make -C . -f {} {} mkdir -p modules && cp obj_dir/*.so modules -""".format(makefile, threads) +""".format(makefile, "THREADS={}".format(threads) if int(threads) > 1 else "") build_script_file = "build_" + build_name + ".sh" tools.write_to_file(build_script_file, build_script_contents, force_unix=True)