about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2019-03-08 09:41:36 +0100
committerGitHub <noreply@github.com>2019-03-08 09:41:36 +0100
commit19e39cb9cb2e040f71bffd8a9e07890579ceeae6 (patch)
tree2363180849108b786ccf59d8cfe57b59b272afd3 /src/bootstrap
parent0547ceb200f0385ba437e1808b468ec81e683c64 (diff)
parentadddee4946fb2138f8aa4bc56daafed939301535 (diff)
downloadrust-19e39cb9cb2e040f71bffd8a9e07890579ceeae6.tar.gz
rust-19e39cb9cb2e040f71bffd8a9e07890579ceeae6.zip
Rollup merge of #58080 - MikaelUrankar:freebsd_arm, r=sanxiyn
Add FreeBSD armv6 and armv7 targets
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/bootstrap.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index c98d8b8ecf4..8af7aa4856c 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -262,6 +262,10 @@ def default_build_triple():
         cputype = 'arm'
         if ostype == 'linux-android':
             ostype = 'linux-androideabi'
+        elif ostype == 'unknown-freebsd':
+            cputype = subprocess.check_output(
+                ['uname', '-p']).strip().decode(default_encoding)
+            ostype = 'unknown-freebsd'
     elif cputype == 'armv6l':
         cputype = 'arm'
         if ostype == 'linux-android':