mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-03 01:19:38 +01:00
Add WASM_BIGINT
linker flag to the web build
(cherry picked from commit 3ae524fa9e42828183f8046f6f33b945475bb052)
This commit is contained in:
parent
7f8a39725e
commit
5e31a5821c
@ -215,6 +215,10 @@ def configure(env):
|
||||
env.Append(CPPDEFINES=["ZSTD_HAVE_WEAK_SYMBOLS=0"])
|
||||
env.extra_suffix = ".gdnative" + env.extra_suffix
|
||||
|
||||
# WASM_BIGINT is needed since emscripten ≥ 3.1.41
|
||||
if cc_semver >= (3, 1, 41):
|
||||
env.Append(LINKFLAGS=["-s", "WASM_BIGINT"])
|
||||
|
||||
# Reduce code size by generating less support code (e.g. skip NodeJS support).
|
||||
env.Append(LINKFLAGS=["-s", "ENVIRONMENT=web,worker"])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user