about summary refs log tree commit diff
path: root/src/etc
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2014-07-23 11:56:36 -0700
committerCorey Richardson <corey@octayn.net>2014-11-04 05:07:47 -0500
commit6b130e3dd9547e233dca2cfd72a5968891672d9c (patch)
treee156144ba54fbba565c602bd7f4f9d99a369c058 /src/etc
parent82fb413d370f1f1094964ed07b65f97dba52cc30 (diff)
downloadrust-6b130e3dd9547e233dca2cfd72a5968891672d9c.tar.gz
rust-6b130e3dd9547e233dca2cfd72a5968891672d9c.zip
Implement flexible target specification
Removes all target-specific knowledge from rustc. Some targets have changed
during this, but none of these should be very visible outside of
cross-compilation. The changes make our targets more consistent.

iX86-unknown-linux-gnu is now only available as i686-unknown-linux-gnu. We
used to accept any value of X greater than 1. i686 was released in 1995, and
should encompass the bare minimum of what Rust supports on x86 CPUs.

The only two windows targets are now i686-pc-windows-gnu and
x86_64-pc-windows-gnu.

The iOS target has been renamed from arm-apple-ios to arm-apple-darwin.

A complete list of the targets we accept now:

arm-apple-darwin
arm-linux-androideabi
arm-unknown-linux-gnueabi
arm-unknown-linux-gnueabihf

i686-apple-darwin
i686-pc-windows-gnu
i686-unknown-freebsd
i686-unknown-linux-gnu

mips-unknown-linux-gnu
mipsel-unknown-linux-gnu

x86_64-apple-darwin
x86_64-unknown-freebsd
x86_64-unknown-linux-gnu
x86_64-pc-windows-gnu

Closes #16093

[breaking-change]
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/snapshot.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/etc/snapshot.py b/src/etc/snapshot.py
index 268b82bdca3..e0610bfbdfe 100644
--- a/src/etc/snapshot.py
+++ b/src/etc/snapshot.py
@@ -75,9 +75,8 @@ def full_snapshot_name(date, rev, platform, hsh):
 
 
 def get_kernel(triple):
-    os_name = triple.split('-')[-1]
-    #scrub(os.getenv("CFG_ENABLE_MINGW_CROSS")):
-    if os_name == "nt" or os_name == "mingw32":
+    os_name = triple.split('-')[2]
+    if os_name == "windows":
         return "winnt"
     if os_name == "darwin":
         return "macos"