Force clang use on all platforms.

This commit is contained in:
Josh Matthews 2019-06-17 08:19:49 -04:00 committed by GitHub
parent ce9f35e0e3
commit f447c6b1ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -317,8 +317,11 @@ class MachCommands(CommandBase):
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C debug_assertions"
if sys.platform == "win32":
env["CC"] = "clang-cl.exe"
env["CXX"] = "clang-cl.exe"
env["CC"] = env.get("CC", "clang-cl.exe")
env["CXX"] = env.get("CXX", "clang-cl.exe")
else:
env["CC"] = env.get("CC", "clang")
env["CXX"] = env.get("CXX", "clang++")
host = host_triple()
if 'apple-darwin' in host and (not target or target == host):