Disable Emscripten assertions in release_debug builds

The messages generated by some assertions can be confusing to users.

(cherry picked from commit d6c9d8d778)
This commit is contained in:
Leon Krause 2018-03-18 21:33:54 +01:00 committed by Hein-Pieter van Braam
parent 6e658fdcc1
commit c968c787e5
1 changed files with 2 additions and 1 deletions

View File

@ -65,13 +65,14 @@ def configure(env):
elif (env["target"] == "release_debug"):
env.Append(CCFLAGS=['-O2', '-DDEBUG_ENABLED'])
env.Append(LINKFLAGS=['-O2', '-s', 'ASSERTIONS=1'])
env.Append(LINKFLAGS=['-O2'])
# retain function names at the cost of file size, for backtraces and profiling
env.Append(LINKFLAGS=['--profiling-funcs'])
elif (env["target"] == "debug"):
env.Append(CCFLAGS=['-O1', '-D_DEBUG', '-g', '-DDEBUG_ENABLED'])
env.Append(LINKFLAGS=['-O1', '-g'])
env.Append(LINKFLAGS=['-s', 'ASSERTIONS=1'])
## Compiler configuration