Skip to content

Commit

Permalink
Merge pull request #1603 from Faless/build/fix_wasm_bigint
Browse files Browse the repository at this point in the history
[SCons] Enable WASM_BIGINT in web builds
  • Loading branch information
dsnopek authored Sep 23, 2024
2 parents 57bd88a + 78498da commit 64221fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'"])
Expand Down

0 comments on commit 64221fa

Please sign in to comment.