summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--SConstruct7
1 files changed, 6 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index b783156..c8a9508 100644
--- a/SConstruct
+++ b/SConstruct
@@ -409,7 +409,12 @@ elif env["platform"] == "android":
env.Append(CCFLAGS=["-O3"])
elif env["platform"] == "javascript":
- env["ENV"] = os.environ
+ if host_platform == "windows":
+ env = Environment(ENV=os.environ, tools=["cc", "c++", "ar", "link", "textfile", "zip"])
+ opts.Update(env)
+ else:
+ env["ENV"] = os.environ
+
env["CC"] = "emcc"
env["CXX"] = "em++"
env["AR"] = "emar"