File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,12 @@ for lib in sys_env["JS_LIBS"]:
61
61
sys_env .Append (LINKFLAGS = ["--js-library" , lib .abspath ])
62
62
for js in sys_env ["JS_PRE" ]:
63
63
sys_env .Append (LINKFLAGS = ["--pre-js" , js .abspath ])
64
+
65
+ # Add JS externs to Closure.
66
+ sys_env ["ENV" ]["EMCC_CLOSURE_ARGS" ] = sys_env ["ENV" ].get ("EMCC_CLOSURE_ARGS" , "" )
64
67
for ext in sys_env ["JS_EXTERNS" ]:
65
68
sys_env ["ENV" ]["EMCC_CLOSURE_ARGS" ] += " --externs " + ext .abspath
69
+ sys_env ["ENV" ]["EMCC_CLOSURE_ARGS" ] = sys_env ["ENV" ]["EMCC_CLOSURE_ARGS" ].strip ()
66
70
67
71
build = []
68
72
build_targets = ["#bin/godot${PROGSUFFIX}.js" , "#bin/godot${PROGSUFFIX}.wasm" ]
Original file line number Diff line number Diff line change @@ -171,9 +171,6 @@ def configure(env: "SConsEnvironment"):
171
171
# Add method for creating the final zip file
172
172
env .AddMethod (create_template_zip , "CreateTemplateZip" )
173
173
174
- # Closure compiler extern and support for ecmascript specs (const, let, etc).
175
- env ["ENV" ]["EMCC_CLOSURE_ARGS" ] = "--language_in ECMASCRIPT_2021"
176
-
177
174
env ["CC" ] = "emcc"
178
175
env ["CXX" ] = "em++"
179
176
You can’t perform that action at this time.
0 commit comments