aboutsummaryrefslogtreecommitdiff
path: root/platform/javascript/detect.py
diff options
context:
space:
mode:
authorLeon Krause2018-03-18 21:33:54 +0100
committerHein-Pieter van Braam2018-04-29 15:01:29 +0200
commitc968c787e5f39734a8cd15b1650f9db78bb36ed4 (patch)
tree69339e17304efb0af4ab99b9d51389b0caddb3ab /platform/javascript/detect.py
parent6e658fdcc12b3dce20c485fe67f91bb9928755d0 (diff)
downloadgodot-c968c787e5f39734a8cd15b1650f9db78bb36ed4.tar.gz
godot-c968c787e5f39734a8cd15b1650f9db78bb36ed4.tar.zst
godot-c968c787e5f39734a8cd15b1650f9db78bb36ed4.zip
Disable Emscripten assertions in release_debug builds
The messages generated by some assertions can be confusing to users. (cherry picked from commit d6c9d8d778954c65d69d1af04a9921d8887dec9f)
Diffstat (limited to 'platform/javascript/detect.py')
-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 485a586f2..2bd55af4a 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