diff options
author | Josh Matthews <josh@joshmatthews.net> | 2019-06-17 08:19:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-17 08:19:49 -0400 |
commit | f447c6b1ec485964686c3d8bd92fa78873398a18 (patch) | |
tree | 41ba986c35a095642ed789e39fc72be40812dddc /python | |
parent | ce9f35e0e3de762d84dffadf39fc30f8377aa4b9 (diff) | |
download | servo-f447c6b1ec485964686c3d8bd92fa78873398a18.tar.gz servo-f447c6b1ec485964686c3d8bd92fa78873398a18.zip |
Force clang use on all platforms.
Diffstat (limited to 'python')
-rw-r--r-- | python/servo/build_commands.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 26f5da3ca25..6af8b1bd3a0 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -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): |