diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-16 16:56:07 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-16 16:56:07 +0200 |
commit | c3fd8752d2f6e70e4553293a831e6e337cd2361e (patch) | |
tree | 146c2256a5504b6bb7f3a1b906c301aa2ec8122a /platform/web/detect.py | |
parent | acc965c09c5f85d747dfcd4bfe7b88a621da92ef (diff) | |
parent | 3907e53ff68643785df0066be64fddce9f79919c (diff) | |
download | redot-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.py | 9 |
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"]]) |