diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index ffaf681c9..9d022dd72 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -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"])