Skip to content

Commit b2331e1

Browse files
Build javascript target on windows host
1 parent 0b05044 commit b2331e1

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
@@ -410,7 +410,12 @@ elif env["platform"] == "android":
410410
env.Append(CCFLAGS=["-O3"])
411411

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

0 commit comments

Comments
 (0)