summaryrefslogtreecommitdiff
path: root/mozilla-rust-config.patch
blob: b4d59afd6df8d97711eca40e4ecbf1b02891dd8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff -up firefox-53.0.2/build/moz.configure/rust.configure.powerpc-rust firefox-53.0.2/build/moz.configure/rust.configure
--- firefox-53.0.2/build/moz.configure/rust.configure.powerpc-rust	2017-05-25 13:07:00.041331688 +0200
+++ firefox-53.0.2/build/moz.configure/rust.configure	2017-05-25 13:59:49.692189995 +0200
@@ -131,6 +131,9 @@ def rust_triple_alias(host_or_target):
             ('sparc64', 'Linux'): 'sparc64-unknown-linux-gnu',
             ('x86', 'Linux'): 'i686-unknown-linux-gnu',
             ('x86_64', 'Linux'): 'x86_64-unknown-linux-gnu',
+            ('ppc64le', 'Linux'): 'powerpc64le-unknown-linux-gnu',
+            ('ppc64', 'Linux'): 'powerpc64-unknown-linux-gnu',
+            ('s390x', 'Linux'): 's390x-unknown-linux-gnu',
             # OS X
             ('x86', 'OSX'): 'i686-apple-darwin',
             ('x86_64', 'OSX'): 'x86_64-apple-darwin',
@@ -151,7 +154,7 @@ def rust_triple_alias(host_or_target):
         }.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))
+            die("Don't know how to translate {} for rustc, cpu: {}, os: {}".format(target.alias, target.cpu, os_or_kernel))
 
         # Check to see whether our rustc has a reasonably functional stdlib
         # for our chosen target.
bgstack15