diff --git a/cli/assets/templates/nim/cart.nimble b/cli/assets/templates/nim/cart.nimble index 2d5b4409..1635a4f0 100644 --- a/cli/assets/templates/nim/cart.nimble +++ b/cli/assets/templates/nim/cart.nimble @@ -13,14 +13,14 @@ let outFile = "build" / "cart.wasm" requires "nim >= 1.4.0" task dbg, "Build the cartridge in debug mode": - exec &"nim c -d:nimNoQuit -o:{outFile} src/cart.nim" + exec &"nim c --threads:off -d:nimNoQuit -o:{outFile} src/cart.nim" task rel, "Build the cartridge with all optimizations": - exec &"nim c -d:nimNoQuit -d:danger -o:{outFile} src/cart.nim" + exec &"nim c --threads:off -d:nimNoQuit -d:danger -o:{outFile} src/cart.nim" after rel: let exe = findExe("wasm-opt") if exe != "": - exec(&"wasm-opt -Oz --zero-filled-memory --strip-producers {outFile} -o {outFile}") + exec(&"wasm-opt --enable-bulk-memory -Oz --zero-filled-memory --strip-producers {outFile} -o {outFile}") else: - echo "Tip: wasm-opt was not found. Install it from binaryen for smaller builds!" \ No newline at end of file + echo "Tip: wasm-opt was not found. Install it from binaryen for smaller builds!"