Merge pull request #746 from NicholasShatokhin/master

Build javascript target on windows host
pull/752/head
Fabio Alessandrelli 2022-05-04 15:59:36 +02:00 committed by GitHub
commit 24e4aeb2c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -409,7 +409,12 @@ elif env["platform"] == "android":
env.Append(CCFLAGS=["-O3"]) env.Append(CCFLAGS=["-O3"])
elif env["platform"] == "javascript": elif env["platform"] == "javascript":
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["ENV"] = os.environ
env["CC"] = "emcc" env["CC"] = "emcc"
env["CXX"] = "em++" env["CXX"] = "em++"
env["AR"] = "emar" env["AR"] = "emar"