Skip to content

Commit 24e4aeb

Browse files
authored
Merge pull request godotengine#746 from NicholasShatokhin/master
Build javascript target on windows host
2 parents d00e469 + b2331e1 commit 24e4aeb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

SConstruct

+6-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,12 @@ elif env["platform"] == "android":
409409
env.Append(CCFLAGS=["-O3"])
410410

411411
elif env["platform"] == "javascript":
412-
env["ENV"] = os.environ
412+
if host_platform == "windows":
413+
env = Environment(ENV=os.environ, tools=["cc", "c++", "ar", "link", "textfile", "zip"])
414+
opts.Update(env)
415+
else:
416+
env["ENV"] = os.environ
417+
413418
env["CC"] = "emcc"
414419
env["CXX"] = "em++"
415420
env["AR"] = "emar"

0 commit comments

Comments
 (0)