summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2024-09-23 10:45:56 -0500
committerGitHub <noreply@github.com>2024-09-23 10:45:56 -0500
commit64221facda062dfb09cb50bcccb9c1fcb3881088 (patch)
tree747091c4c3b40b21bf786ea016d61b3dadbbb92d
parent57bd88ad992da929f224f03c3dee3103bc41ee5d (diff)
parent78498da7c329141ba3c54e43561bf470a86b3dab (diff)
downloadredot-cpp-64221facda062dfb09cb50bcccb9c1fcb3881088.tar.gz
Merge pull request #1603 from Faless/build/fix_wasm_bigint
[SCons] Enable WASM_BIGINT in web builds
-rw-r--r--tools/web.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/web.py b/tools/web.py
index c8f07c5..e878a78 100644
--- a/tools/web.py
+++ b/tools/web.py
@@ -42,6 +42,10 @@ def generate(env):
env.Append(CCFLAGS=["-sSIDE_MODULE=1"])
env.Append(LINKFLAGS=["-sSIDE_MODULE=1"])
+ # Enable WebAssembly BigInt <-> i64 conversion.
+ # This must match the flag used to build Godot (true in official builds since 4.3)
+ env.Append(LINKFLAGS=["-sWASM_BIGINT"])
+
# Force wasm longjmp mode.
env.Append(CCFLAGS=["-sSUPPORT_LONGJMP='wasm'"])
env.Append(LINKFLAGS=["-sSUPPORT_LONGJMP='wasm'"])