From b2331e1f6dc436e0d0d474cd2188288d4e266a14 Mon Sep 17 00:00:00 2001 From: Mykola Shatokhin Date: Sun, 1 May 2022 00:35:42 +0300 Subject: [PATCH] Build javascript target on windows host --- SConstruct | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 41d1c30b..5b405f49 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"