summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-03-19 06:18:22 +0100
committerGitHub <noreply@github.com>2018-03-19 06:18:22 +0100
commit61e95fc0bb9d52fa2c0dd62fa4110fad0171fcfe (patch)
treeadfdfb9f1104795126a5f98411608c2e0382251c
parentfc4e7722864907a751e2b88d9d3e2e58d7f4004e (diff)
parentd6c9d8d778954c65d69d1af04a9921d8887dec9f (diff)
Merge pull request #17617 from eska014/emsc-assertions
Disable Emscripten assertions in release_debug builds
-rw-r--r--platform/javascript/detect.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py
index 7e6a1518ed..989e608716 100644
--- a/platform/javascript/detect.py
+++ b/platform/javascript/detect.py
@@ -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