Force the use of clang-cl.exe for Windows builds.

This commit is contained in:
Josh Matthews 2019-04-24 16:19:37 -04:00
parent 817aa49dc7
commit c038ba4c7c
4 changed files with 9 additions and 7 deletions

View file

@ -310,6 +310,10 @@ class MachCommands(CommandBase):
if with_debug_assertions:
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C debug_assertions"
if sys.platform == "win32":
env["CC"] = "clang-cl.exe"
env["CXX"] = "clang-cl.exe"
if android:
if "ANDROID_NDK" not in env:
print("Please set the ANDROID_NDK environment variable.")