-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web editor build with closure compiler fails to compile with Emscripten 3.1.53 #88008
Comments
This seems to solve it: diff --git a/platform/web/detect.py b/platform/web/detect.py
index 89cdab9fa4..bbe1634dfa 100644
--- a/platform/web/detect.py
+++ b/platform/web/detect.py
@@ -169,7 +169,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 ECMASCRIPT_2020"
+ env["ENV"]["EMCC_CLOSURE_ARGS"] = "--language_in ECMASCRIPT_2021"
env["CC"] = "emcc"
env["CXX"] = "em++" I suspect it's related to this change: https://github.com/emscripten-core/emscripten/blob/main/ChangeLog.md#3142---062223
I don't know if we have a reason to stay on |
@akien-mga Sorry, it totally flew above my head yesterday when I did my pass through the Change Log.
I didn't realize that it would impact us about the language used. |
Fixes godotengine#88008. (cherry picked from commit d29b0d9)
Fixes godotengine#88008. (cherry picked from commit d29b0d9)
Fixes godotengine#88008. (cherry picked from commit d29b0d9)
Fixes godotengine#88008. (cherry picked from commit d29b0d9)
Tested versions
Reproducible in 4.3.dev (d335281) with Emscripten 3.1.53.
Didn't try earlier versions yet on current Godot, but 4.3.dev2 built fine with Emscripten 3.1.39 a few weeks ago.
System information
Fedora 39, Emscripten 3.1.53
Issue description
Compiling official builds for the first time with Emscripten 3.1.53 (upgrading from 3.1.39), I ran into the following issue for
scons target=editor use_closure_compiler=yes production=yes
:Steps to reproduce
scons target=editor use_closure_compiler=yes production=yes
Minimal reproduction project (MRP)
n/a
The text was updated successfully, but these errors were encountered: