Bug 1515528 - Prefer MSVC when building for aarch64 windows. r=froydnj
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 11 Jan 2019 00:20:33 +0000
changeset 510524 c7d7c62b7b11c28bcc44d8a3424dcb419b9d7bce
parent 510523 f1ec67ff78066b5a20fab4e1900166b005b46d46
child 510525 02cd44e39566b22dc5c02f031c02045aca2a4393
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1515528
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1515528 - Prefer MSVC when building for aarch64 windows. r=froydnj Depends on D15264 Differential Revision: https://phabricator.services.mozilla.com/D15265
build/moz.configure/toolchain.configure
--- a/build/moz.configure/toolchain.configure
+++ b/build/moz.configure/toolchain.configure
@@ -834,17 +834,21 @@ def default_c_compilers(host_or_target, 
 
     other_c_compiler = () if other_c_compiler is None else (other_c_compiler,)
 
     @depends(host_or_target, target, toolchain_prefix, android_clang_compiler,
              *other_c_compiler)
     def default_c_compilers(host_or_target, target, toolchain_prefix,
                             android_clang_compiler, *other_c_compiler):
         if host_or_target.kernel == 'WINNT':
-            supported = types = ('clang-cl', 'msvc', 'gcc', 'clang')
+            # Prefer MSVC for aarch64 for now.
+            if host_or_target.cpu == 'aarch64':
+                supported = types = ('msvc', 'clang-cl', 'gcc', 'clang')
+            else:
+                supported = types = ('clang-cl', 'msvc', 'gcc', 'clang')
         elif host_or_target.kernel == 'Darwin':
             types = ('clang',)
             supported = ('clang', 'gcc')
         else:
             supported = types = ('clang', 'gcc')
 
         info = other_c_compiler[0] if other_c_compiler else None
         if info and info.type in supported: