summaryrefslogtreecommitdiffstats
path: root/tools/web.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/web.py')
-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'"])