about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-01-20 21:49:24 +0000
committerbors <bors@rust-lang.org>2019-01-20 21:49:24 +0000
commite73069767f11d992f0dca7e31d53d7e1a77fd237 (patch)
tree3b386cc0028b9ce89761fd6479eef1bd44a302c9 /src/bootstrap
parent846ea58cd5ae1c8d72e55dd6cf1ee35ffbca3d63 (diff)
parentc2863dd1b43f4f1fe63a209922f7e72db53f9663 (diff)
downloadrust-e73069767f11d992f0dca7e31d53d7e1a77fd237.tar.gz
rust-e73069767f11d992f0dca7e31d53d7e1a77fd237.zip
Auto merge of #57704 - lenoil98:patch-2, r=alexcrichton
Update bootstrap.py

Add PowerPC64 support on FreeBSD
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/bootstrap.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index f3dbae6909a..e8c1594bda3 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -230,6 +230,9 @@ def default_build_triple():
         err = "unknown OS type: {}".format(ostype)
         sys.exit(err)
 
+    if cputype == 'powerpc' and ostype == 'unknown-freebsd':
+        cputype = subprocess.check_output(
+              ['uname', '-p']).strip().decode(default_encoding)
     cputype_mapper = {
         'BePC': 'i686',
         'aarch64': 'aarch64',