Bug 1364036 - Add rustc targets for Solaris. r=ted
authorPetr Sumbera <petr.sumbera@oracle.com>
Thu, 11 May 2017 04:40:26 -0700
changeset 358325 f7d07efaf8a4e2aa40b00fddcc0ccd7764389aa3
parent 358324 8336687998c5edc6f5a07fb815a89363dd6eaec4
child 358326 70f16415d8fabf1210c88225b3ddd4b0da17fb5a
push id31819
push userarchaeopteryx@coole-files.de
push dateSun, 14 May 2017 16:04:50 +0000
treeherdermozilla-central@626efff0df63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1364036
milestone55.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 1364036 - Add rustc targets for Solaris. r=ted
build/moz.configure/rust.configure
--- a/build/moz.configure/rust.configure
+++ b/build/moz.configure/rust.configure
@@ -163,16 +163,19 @@ def rust_triple_alias(host_or_target):
             ('aarch64', 'Android'): 'aarch64-linux-android',
             ('arm', 'Android'): 'armv7-linux-androideabi',
             ('x86', 'Android'): 'i686-linux-android',
             # Windows
             ('x86', 'WINNT'): 'i686-pc-windows-msvc',
             ('x86_64', 'WINNT'): 'x86_64-pc-windows-msvc',
             ('x86', 'WINNT-MINGW'): 'i686-pc-windows-gnu',
             ('x86_64', 'WINNT-MINGW'): 'x86_64-pc-windows-gnu',
+            # Solaris
+            ('x86_64', 'SunOS'): 'x86_64-sun-solaris',
+            ('sparc64', 'SunOS'): 'sparcv9-sun-solaris',
         }.get((host_or_target.cpu, os_or_kernel), None)
 
         if rustc_target is None:
             die("Don't know how to translate {} for rustc".format(host_or_target.alias))
 
         # Check to see whether our rustc has a reasonably functional stdlib
         # for our chosen target.
         target_arg = '--target=' + rustc_target