diff --git a/platform/web/detect.py b/platform/web/detect.py index a634a7ca8a4..d71e01349c3 100644 --- a/platform/web/detect.py +++ b/platform/web/detect.py @@ -220,6 +220,10 @@ def configure(env: "Environment"): env.Append(LINKFLAGS=["-s", "SIDE_MODULE=2"]) env.extra_suffix = ".dlink" + 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"])