Skip to content

Commit

Permalink
[Web] Fix closure compiler builds using BIGINT
Browse files Browse the repository at this point in the history
When using proxy_to_pthread we add BIGINT support (to support exchanging
64 bits integers between wasm and JS).

Bigint though, is part of ECMAScript 2020, and the closure compiler was
using ECMAScript 6 instead.

This commit update the CC configuration to use ECMAScript 2020 instead.

(cherry picked from commit e9df955)
  • Loading branch information
Faless authored and akien-mga committed Mar 9, 2024
1 parent 8c54f7b commit 5b4c5c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/web/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def configure(env: "Environment"):
env.AddMethod(create_template_zip, "CreateTemplateZip")

# Closure compiler extern and support for ecmascript specs (const, let, etc).
env["ENV"]["EMCC_CLOSURE_ARGS"] = "--language_in ECMASCRIPT6"
env["ENV"]["EMCC_CLOSURE_ARGS"] = "--language_in ECMASCRIPT_2020"

env["CC"] = "emcc"
env["CXX"] = "em++"
Expand Down

0 comments on commit 5b4c5c4

Please sign in to comment.