summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorMykola Shatokhin <n.shatokhin@gmail.com>2022-05-01 00:35:42 +0300
committerMykola Shatokhin <n.shatokhin@gmail.com>2022-05-01 00:35:42 +0300
commitb2331e1f6dc436e0d0d474cd2188288d4e266a14 (patch)
tree0fa2941e5e316cb8cfea81e3c9607430e8d2de9e /SConstruct
parent0b050442dada1b819e1bd06b3ed893af9d74dd79 (diff)
downloadredot-cpp-b2331e1f6dc436e0d0d474cd2188288d4e266a14.tar.gz
Build javascript target on windows host
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 6 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 41d1c30..5b405f4 100644
--- a/SConstruct
+++ b/SConstruct
@@ -410,7 +410,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"