Skip to content

Commit 64221fa

Browse files
authored
Merge pull request godotengine#1603 from Faless/build/fix_wasm_bigint
[SCons] Enable WASM_BIGINT in web builds
2 parents 57bd88a + 78498da commit 64221fa

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)