Skip to content

Commit 33e4ebe

Browse files
committed
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 nimimum 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] Conflicts: src/librustc/back/link.rs src/librustc/middle/trans/cabi_x86.rs src/librustc_back/archive.rs
1 parent 4444aec commit 33e4ebe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1545
-847
lines changed

configure

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,37 +300,37 @@ case $CFG_OSTYPE in
300300
;;
301301

302302
MINGW32*)
303-
CFG_OSTYPE=pc-mingw32
303+
CFG_OSTYPE=pc-windows-gnu
304304
;;
305305

306306
MINGW64*)
307307
# msys2, MSYSTEM=MINGW64
308-
CFG_OSTYPE=w64-mingw32
308+
CFG_OSTYPE=pc-windows-gnu
309309
;;
310310

311311
# Thad's Cygwin identifers below
312312

313313
# Vista 32 bit
314314
CYGWIN_NT-6.0)
315-
CFG_OSTYPE=pc-mingw32
315+
CFG_OSTYPE=pc-windows-gnu
316316
CFG_CPUTYPE=i686
317317
;;
318318

319319
# Vista 64 bit
320320
CYGWIN_NT-6.0-WOW64)
321-
CFG_OSTYPE=w64-mingw32
321+
CFG_OSTYPE=pc-windows-gnu
322322
CFG_CPUTYPE=x86_64
323323
;;
324324

325325
# Win 7 32 bit
326326
CYGWIN_NT-6.1)
327-
CFG_OSTYPE=pc-mingw32
327+
CFG_OSTYPE=pc-windows-gnu
328328
CFG_CPUTYPE=i686
329329
;;
330330

331331
# Win 7 64 bit
332332
CYGWIN_NT-6.1-WOW64)
333-
CFG_OSTYPE=w64-mingw32
333+
CFG_OSTYPE=pc-windows-gnu
334334
CFG_CPUTYPE=x86_64
335335
;;
336336

mk/platform.mk

Lines changed: 179 additions & 209 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)