|
|
6468ebc |
diff -up firefox-55.0/build/moz.configure/rust.configure.rust-ppc64le firefox-55.0/build/moz.configure/rust.configure
|
|
|
6468ebc |
--- firefox-55.0/build/moz.configure/rust.configure.rust-ppc64le 2017-07-31 18:20:49.000000000 +0200
|
|
|
6468ebc |
+++ firefox-55.0/build/moz.configure/rust.configure 2017-08-02 10:19:03.254220003 +0200
|
|
|
6468ebc |
@@ -151,6 +151,9 @@ def rust_triple_alias(host_or_target):
|
|
|
5a87c5b |
('sparc64', 'Linux'): 'sparc64-unknown-linux-gnu',
|
|
|
5a87c5b |
('x86', 'Linux'): 'i686-unknown-linux-gnu',
|
|
|
5a87c5b |
('x86_64', 'Linux'): 'x86_64-unknown-linux-gnu',
|
|
|
5a87c5b |
+ ('ppc64le', 'Linux'): 'powerpc64le-unknown-linux-gnu',
|
|
|
5a87c5b |
+ ('ppc64', 'Linux'): 'powerpc64-unknown-linux-gnu',
|
|
|
5a87c5b |
+ ('s390x', 'Linux'): 's390x-unknown-linux-gnu',
|
|
|
5a87c5b |
# OS X
|
|
|
5a87c5b |
('x86', 'OSX'): 'i686-apple-darwin',
|
|
|
5a87c5b |
('x86_64', 'OSX'): 'x86_64-apple-darwin',
|
|
|
6468ebc |
@@ -174,8 +177,10 @@ def rust_triple_alias(host_or_target):
|
|
|
6468ebc |
('sparc64', 'SunOS'): 'sparcv9-sun-solaris',
|
|
|
5a87c5b |
}.get((host_or_target.cpu, os_or_kernel), None)
|
|
|
5a87c5b |
|
|
|
422c357 |
+ if (rustc_target == 'powerpc64-unknown-linux-gnu' and host_or_target.endianness == 'little'):
|
|
|
422c357 |
+ rustc_target = 'powerpc64le-unknown-linux-gnu'
|
|
|
5a87c5b |
if rustc_target is None:
|
|
|
5a87c5b |
- die("Don't know how to translate {} for rustc".format(host_or_target.alias))
|
|
|
5a87c5b |
+ die("Don't know how to translate {} for rustc, cpu: {}, os: {}".format(target.alias, target.cpu, os_or_kernel))
|
|
|
5a87c5b |
|
|
|
5a87c5b |
# Check to see whether our rustc has a reasonably functional stdlib
|
|
|
5a87c5b |
# for our chosen target.
|