Skip to content

Commit 78498da

Browse files
committed
[SCons] Enable WASM_BIGINT in web builds
Required since Godot 4.3, which is also the first Godot version with wide WASM gdnative support (previous versions were Chrome-only, and very brittle).
1 parent 57bd88a commit 78498da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/web.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ def generate(env):
4242
env.Append(CCFLAGS=["-sSIDE_MODULE=1"])
4343
env.Append(LINKFLAGS=["-sSIDE_MODULE=1"])
4444

45+
# Enable WebAssembly BigInt <-> i64 conversion.
46+
# This must match the flag used to build Godot (true in official builds since 4.3)
47+
env.Append(LINKFLAGS=["-sWASM_BIGINT"])
48+
4549
# Force wasm longjmp mode.
4650
env.Append(CCFLAGS=["-sSUPPORT_LONGJMP='wasm'"])
4751
env.Append(LINKFLAGS=["-sSUPPORT_LONGJMP='wasm'"])

0 commit comments

Comments
 (0)