File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,12 @@ for lib in sys_env["JS_LIBS"]:
5959 sys_env .Append (LINKFLAGS = ["--js-library" , lib .abspath ])
6060for js in sys_env ["JS_PRE" ]:
6161 sys_env .Append (LINKFLAGS = ["--pre-js" , js .abspath ])
62+
63+ # Add JS externs to Closure.
64+ sys_env ["ENV" ]["EMCC_CLOSURE_ARGS" ] = sys_env ["ENV" ].get ("EMCC_CLOSURE_ARGS" , "" )
6265for ext in sys_env ["JS_EXTERNS" ]:
6366 sys_env ["ENV" ]["EMCC_CLOSURE_ARGS" ] += " --externs " + ext .abspath
67+ sys_env ["ENV" ]["EMCC_CLOSURE_ARGS" ] = sys_env ["ENV" ]["EMCC_CLOSURE_ARGS" ].strip ()
6468
6569build = []
6670build_targets = ["#bin/godot${PROGSUFFIX}.js" , "#bin/godot${PROGSUFFIX}.wasm" ]
Original file line number Diff line number Diff line change @@ -166,9 +166,6 @@ def configure(env: "SConsEnvironment"):
166166 # Add method for creating the final zip file
167167 env .AddMethod (create_template_zip , "CreateTemplateZip" )
168168
169- # Closure compiler extern and support for ecmascript specs (const, let, etc).
170- env ["ENV" ]["EMCC_CLOSURE_ARGS" ] = "--language_in ECMASCRIPT_2021"
171-
172169 env ["CC" ] = "emcc"
173170 env ["CXX" ] = "em++"
174171
You can’t perform that action at this time.
0 commit comments