summaryrefslogtreecommitdiffstats
path: root/platform/web/detect.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-08-16 16:56:07 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-08-16 16:56:07 +0200
commitc3fd8752d2f6e70e4553293a831e6e337cd2361e (patch)
tree146c2256a5504b6bb7f3a1b906c301aa2ec8122a /platform/web/detect.py
parentacc965c09c5f85d747dfcd4bfe7b88a621da92ef (diff)
parent3907e53ff68643785df0066be64fddce9f79919c (diff)
downloadredot-engine-c3fd8752d2f6e70e4553293a831e6e337cd2361e.tar.gz
Merge pull request #80612 from akien-mga/scons-disable-exception-handling
SCons: Disable C++ exception handling
Diffstat (limited to 'platform/web/detect.py')
-rw-r--r--platform/web/detect.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/platform/web/detect.py b/platform/web/detect.py
index 2685cbcd63..dc8f4e0dd9 100644
--- a/platform/web/detect.py
+++ b/platform/web/detect.py
@@ -97,12 +97,9 @@ def configure(env: "Environment"):
if env["use_assertions"]:
env.Append(LINKFLAGS=["-s", "ASSERTIONS=1"])
- if env.editor_build:
- if env["initial_memory"] < 64:
- print('Note: Forcing "initial_memory=64" as it is required for the web editor.')
- env["initial_memory"] = 64
- else:
- env.Append(CPPFLAGS=["-fno-exceptions"])
+ if env.editor_build and env["initial_memory"] < 64:
+ print('Note: Forcing "initial_memory=64" as it is required for the web editor.')
+ env["initial_memory"] = 64
env.Append(LINKFLAGS=["-s", "INITIAL_MEMORY=%sMB" % env["initial_memory"]])