You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
Add WASM_BIGINT linker flag to the web build
(cherry picked from commit 3ae524fa9e)
This commit is contained in:
committed by
Rémi Verschelde
parent
2b704dc15d
commit
52efe85133
@@ -237,6 +237,9 @@ def configure(env: "Environment"):
|
||||
env.Append(LINKFLAGS=["-fvisibility=hidden"])
|
||||
env.extra_suffix = ".dlink" + env.extra_suffix
|
||||
|
||||
# WASM_BIGINT is needed since emscripten ≥ 3.1.41
|
||||
needs_wasm_bigint = cc_semver >= (3, 1, 41)
|
||||
|
||||
# Run the main application in a web worker
|
||||
if env["proxy_to_pthread"]:
|
||||
env.Append(LINKFLAGS=["-s", "PROXY_TO_PTHREAD=1"])
|
||||
@@ -245,6 +248,9 @@ def configure(env: "Environment"):
|
||||
# https://github.com/emscripten-core/emscripten/issues/18034#issuecomment-1277561925
|
||||
env.Append(LINKFLAGS=["-s", "TEXTDECODER=0"])
|
||||
# BigInt support to pass object pointers between contexts
|
||||
needs_wasm_bigint = True
|
||||
|
||||
if needs_wasm_bigint:
|
||||
env.Append(LINKFLAGS=["-s", "WASM_BIGINT"])
|
||||
|
||||
# Reduce code size by generating less support code (e.g. skip NodeJS support).
|
||||
|
||||
Reference in New Issue
Block a user