Skip to content

Commit

Permalink
updated build config
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Mar 23, 2024
1 parent 4633b22 commit 957dee9
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ switch("d", "allowConsoleLogger")

switch("d", "wasm3HasWasi")
switch("d", "wasm3VerboseErrorMessages")
switch("panics", "on")


# switches for debugging

# switch("d", "wasm3EnableStrace2")
# switch("d", "wasm3RecordBacktraces")
# switch("d", "wasm3LogModule")
Expand All @@ -30,18 +33,23 @@ switch("d", "wasm3VerboseErrorMessages")
# switch("d", "traceArc")
# switch("d", "nimTypeNames")


# checks

# --objChecks:off
# --fieldChecks:off
# --rangeChecks:off
# --boundChecks:off
# --overflowChecks:off
# --floatChecks:off
# --nanChecks:off
# --infChecks:off

# --rangeChecks:off # this causes issues on js backend with some prng initialization

# switch("cc", "vcc")
# switch("nimcache", "D:\\nc")
# switch("nimcache", "D:/nc")
# switch("nimcache", "nimcache")
# switch("nimcache", "C:/nimcache")

case 0
of 0:
Expand All @@ -50,16 +58,7 @@ of 1:
switch("d", "release")
switch("stackTrace", "on")
switch("lineTrace", "on")
of 2:
switch("cc", "vcc")
switch("d", "debug")
switch("debuginfo", "on")
of 3:
switch("d", "release")
switch("debuginfo", "on")
switch("stackTrace", "on")
switch("lineTrace", "on")
switch("nimcache", "D:\\nc")
else:
discard

Expand Down

0 comments on commit 957dee9

Please sign in to comment.