You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Merge pull request #100525 from adamscott/set-closure-language-to-default
Remove custom `--language-in` arg for the Closure compiler
This commit is contained in:
@@ -61,8 +61,12 @@ for lib in sys_env["JS_LIBS"]:
|
|||||||
sys_env.Append(LINKFLAGS=["--js-library", lib.abspath])
|
sys_env.Append(LINKFLAGS=["--js-library", lib.abspath])
|
||||||
for js in sys_env["JS_PRE"]:
|
for js in sys_env["JS_PRE"]:
|
||||||
sys_env.Append(LINKFLAGS=["--pre-js", js.abspath])
|
sys_env.Append(LINKFLAGS=["--pre-js", js.abspath])
|
||||||
|
|
||||||
|
# Add JS externs to Closure.
|
||||||
|
sys_env["ENV"]["EMCC_CLOSURE_ARGS"] = sys_env["ENV"].get("EMCC_CLOSURE_ARGS", "")
|
||||||
for ext in sys_env["JS_EXTERNS"]:
|
for ext in sys_env["JS_EXTERNS"]:
|
||||||
sys_env["ENV"]["EMCC_CLOSURE_ARGS"] += " --externs " + ext.abspath
|
sys_env["ENV"]["EMCC_CLOSURE_ARGS"] += " --externs " + ext.abspath
|
||||||
|
sys_env["ENV"]["EMCC_CLOSURE_ARGS"] = sys_env["ENV"]["EMCC_CLOSURE_ARGS"].strip()
|
||||||
|
|
||||||
build = []
|
build = []
|
||||||
build_targets = ["#bin/godot${PROGSUFFIX}.js", "#bin/godot${PROGSUFFIX}.wasm"]
|
build_targets = ["#bin/godot${PROGSUFFIX}.js", "#bin/godot${PROGSUFFIX}.wasm"]
|
||||||
|
|||||||
@@ -171,9 +171,6 @@ def configure(env: "SConsEnvironment"):
|
|||||||
# Add method for creating the final zip file
|
# Add method for creating the final zip file
|
||||||
env.AddMethod(create_template_zip, "CreateTemplateZip")
|
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_2021"
|
|
||||||
|
|
||||||
env["CC"] = "emcc"
|
env["CC"] = "emcc"
|
||||||
env["CXX"] = "em++"
|
env["CXX"] = "em++"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user