about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorMikaelUrankar <mikael.urankar@gmail.com>2019-02-02 16:41:38 +0100
committerMikaelUrankar <mikael.urankar@gmail.com>2019-02-13 12:19:50 +0100
commitadddee4946fb2138f8aa4bc56daafed939301535 (patch)
tree7c6b536143c1a0bc8fae2140482c5ae0eb59bb14 /src/bootstrap
parent1484d0d123860dbd79804e9996f3fa5b6f4a6d58 (diff)
downloadrust-adddee4946fb2138f8aa4bc56daafed939301535.tar.gz
rust-adddee4946fb2138f8aa4bc56daafed939301535.zip
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 119b38bcc99..7813d9bd63c 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':