Skip to content

Commit

Permalink
Merge pull request #344 from tjpalmer/nim-no-quit
Browse files Browse the repository at this point in the history
Define nimNoQuit
  • Loading branch information
aduros authored Jan 19, 2022
2 parents 660d984 + 750bdde commit 984adb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/assets/templates/nim/cart.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ let outFile = "build" / "cart.wasm"
requires "nim >= 1.4.0"

task dbg, "Build the cartridge in debug mode":
exec &"nim c -o:{outFile} src/cart.nim"
exec &"nim c -d:nimNoQuit -o:{outFile} src/cart.nim"

task rel, "Build the cartridge with all optimizations":
exec &"nim c -d:danger -o:{outFile} src/cart.nim"
exec &"nim c -d:nimNoQuit -d:danger -o:{outFile} src/cart.nim"

after rel:
let exe = findExe("wasm-opt")
Expand Down

0 comments on commit 984adb6

Please sign in to comment.