diff options
author | Josh Matthews <josh@joshmatthews.net> | 2019-04-24 16:19:37 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2019-04-25 10:55:16 -0400 |
commit | c038ba4c7c98a21ccbf7f415a7bbc14231d6920a (patch) | |
tree | c44433e37d731190bafd3ce8973dd510b306c79d /python/servo/build_commands.py | |
parent | 817aa49dc7abc73863560c510cd81a2fad8f854b (diff) | |
download | servo-c038ba4c7c98a21ccbf7f415a7bbc14231d6920a.tar.gz servo-c038ba4c7c98a21ccbf7f415a7bbc14231d6920a.zip |
Force the use of clang-cl.exe for Windows builds.
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r-- | python/servo/build_commands.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 8033c6859eb..d516f1639dc 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -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.") |