-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]
- Loading branch information
Showing
77 changed files
with
1,598 additions
and
799 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# i686-pc-windows-gnu configuration | ||
CROSS_PREFIX_i686-pc-windows-gnu=i686-pc-windows-gnu- | ||
CC_i686-pc-windows-gnu=gcc | ||
CXX_i686-pc-windows-gnu=g++ | ||
CPP_i686-pc-windows-gnu=gcc -E | ||
AR_i686-pc-windows-gnu=ar | ||
CFG_LIB_NAME_i686-pc-windows-gnu=$(1).dll | ||
CFG_STATIC_LIB_NAME_i686-pc-windows-gnu=$(1).lib | ||
CFG_LIB_GLOB_i686-pc-windows-gnu=$(1)-*.dll | ||
CFG_LIB_DSYM_GLOB_i686-pc-windows-gnu=$(1)-*.dylib.dSYM | ||
CFG_CFLAGS_i686-pc-windows-gnu := -march=i686 -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS) | ||
CFG_GCCISH_CFLAGS_i686-pc-windows-gnu := -Wall -Werror -g -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS) | ||
CFG_GCCISH_CXXFLAGS_i686-pc-windows-gnu := -fno-rtti $(CXXFLAGS) | ||
CFG_GCCISH_LINK_FLAGS_i686-pc-windows-gnu := -shared -g -m32 | ||
CFG_GCCISH_DEF_FLAG_i686-pc-windows-gnu := | ||
CFG_GCCISH_PRE_LIB_FLAGS_i686-pc-windows-gnu := | ||
CFG_GCCISH_POST_LIB_FLAGS_i686-pc-windows-gnu := | ||
CFG_DEF_SUFFIX_i686-pc-windows-gnu := .windows.def | ||
CFG_LLC_FLAGS_i686-pc-windows-gnu := | ||
CFG_INSTALL_NAME_i686-pc-windows-gnu = | ||
CFG_EXE_SUFFIX_i686-pc-windows-gnu := .exe | ||
CFG_WINDOWSY_i686-pc-windows-gnu := 1 | ||
CFG_UNIXY_i686-pc-windows-gnu := | ||
CFG_PATH_MUNGE_i686-pc-windows-gnu := | ||
CFG_LDPATH_i686-pc-windows-gnu :=$(CFG_LDPATH_i686-pc-windows-gnu):$(PATH) | ||
CFG_RUN_i686-pc-windows-gnu=PATH="$(CFG_LDPATH_i686-pc-windows-gnu):$(1)" $(2) | ||
CFG_RUN_TARG_i686-pc-windows-gnu=$(call CFG_RUN_i686-pc-windows-gnu,$(HLIB$(1)_H_$(CFG_BUILD)),$(2)) | ||
CFG_GNU_TRIPLE_i686-pc-windows-gnu := i686-w64-mingw32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# mipsel-unknown-linux-gnu configuration | ||
CC_mipsel-unknown-linux-gnu=mipsel-unknown-linux-gnu-gcc | ||
CXX_mipsel-unknown-linux-gnu=mipsel-unknown-linux-gnu-g++ | ||
CPP_mipsel-unknown-linux-gnu=mipsel-unknown-linux-gnu-gcc | ||
AR_mipsel-unknown-linux-gnu=mipsel-unknown-linux-gnu-ar | ||
CFG_LIB_NAME_mipsel-unknown-linux-gnu=lib$(1).so | ||
CFG_STATIC_LIB_NAME_mipsel-unknown-linux-gnu=lib$(1).a | ||
CFG_LIB_GLOB_mipsel-unknown-linux-gnu=lib$(1)-*.so | ||
CFG_LIB_DSYM_GLOB_mipsel-unknown-linux-gnu=lib$(1)-*.dylib.dSYM | ||
CFG_CFLAGS_mipsel-unknown-linux-gnu := -mips32 -mabi=32 $(CFLAGS) | ||
CFG_GCCISH_CFLAGS_mipsel-unknown-linux-gnu := -Wall -g -fPIC -mips32 -mabi=32 $(CFLAGS) | ||
CFG_GCCISH_CXXFLAGS_mipsel-unknown-linux-gnu := -fno-rtti $(CXXFLAGS) | ||
CFG_GCCISH_LINK_FLAGS_mipsel-unknown-linux-gnu := -shared -fPIC -g -mips32 | ||
CFG_GCCISH_DEF_FLAG_mipsel-unknown-linux-gnu := -Wl,--export-dynamic,--dynamic-list= | ||
CFG_GCCISH_PRE_LIB_FLAGS_mipsel-unknown-linux-gnu := -Wl,-whole-archive | ||
CFG_GCCISH_POST_LIB_FLAGS_mipsel-unknown-linux-gnu := -Wl,-no-whole-archive | ||
CFG_DEF_SUFFIX_mipsel-unknown-linux-gnu := .linux.def | ||
CFG_LLC_FLAGS_mipsel-unknown-linux-gnu := | ||
CFG_INSTALL_NAME_mipsel-unknown-linux-gnu = | ||
CFG_EXE_SUFFIX_mipsel-unknown-linux-gnu := | ||
CFG_WINDOWSY_mipsel-unknown-linux-gnu := | ||
CFG_UNIXY_mipsel-unknown-linux-gnu := 1 | ||
CFG_PATH_MUNGE_mipsel-unknown-linux-gnu := true | ||
CFG_LDPATH_mipsel-unknown-linux-gnu := | ||
CFG_RUN_mipsel-unknown-linux-gnu= | ||
CFG_RUN_TARG_mipsel-unknown-linux-gnu= | ||
RUSTC_FLAGS_mipsel-unknown-linux-gnu := -C target-cpu=mips32 -C target-feature="+mips32,+o32" | ||
CFG_GNU_TRIPLE_mipsel-unknown-linux-gnu := mipsel-unknown-linux-gnu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# x86_64-pc-windows-gnu configuration | ||
CROSS_PREFIX_x86_64-pc-windows-gnu=x86_64-pc-windows-gnu- | ||
CC_x86_64-pc-windows-gnu=gcc | ||
CXX_x86_64-pc-windows-gnu=g++ | ||
CPP_x86_64-pc-windows-gnu=gcc -E | ||
AR_x86_64-pc-windows-gnu=ar | ||
CFG_LIB_NAME_x86_64-pc-windows-gnu=$(1).dll | ||
CFG_STATIC_LIB_NAME_x86_64-pc-windows-gnu=$(1).lib | ||
CFG_LIB_GLOB_x86_64-pc-windows-gnu=$(1)-*.dll | ||
CFG_LIB_DSYM_GLOB_x86_64-pc-windows-gnu=$(1)-*.dylib.dSYM | ||
CFG_CFLAGS_x86_64-pc-windows-gnu := -m64 -D_WIN32_WINNT=0x0600 $(CFLAGS) | ||
CFG_GCCISH_CFLAGS_x86_64-pc-windows-gnu := -Wall -Werror -g -m64 -D_WIN32_WINNT=0x0600 $(CFLAGS) | ||
CFG_GCCISH_CXXFLAGS_x86_64-pc-windows-gnu := -fno-rtti $(CXXFLAGS) | ||
CFG_GCCISH_LINK_FLAGS_x86_64-pc-windows-gnu := -shared -g -m64 | ||
CFG_GCCISH_DEF_FLAG_x86_64-pc-windows-gnu := | ||
CFG_GCCISH_PRE_LIB_FLAGS_x86_64-pc-windows-gnu := | ||
CFG_GCCISH_POST_LIB_FLAGS_x86_64-pc-windows-gnu := | ||
CFG_DEF_SUFFIX_x86_64-pc-windows-gnu := .windows.def | ||
CFG_LLC_FLAGS_x86_64-pc-windows-gnu := | ||
CFG_INSTALL_NAME_x86_64-pc-windows-gnu = | ||
CFG_EXE_SUFFIX_x86_64-pc-windows-gnu := .exe | ||
CFG_WINDOWSY_x86_64-pc-windows-gnu := 1 | ||
CFG_UNIXY_x86_64-pc-windows-gnu := | ||
CFG_PATH_MUNGE_x86_64-pc-windows-gnu := | ||
CFG_LDPATH_x86_64-pc-windows-gnu :=$(CFG_LDPATH_x86_64-pc-windows-gnu):$(PATH) | ||
CFG_RUN_x86_64-pc-windows-gnu=PATH="$(CFG_LDPATH_x86_64-pc-windows-gnu):$(1)" $(2) | ||
CFG_RUN_TARG_x86_64-pc-windows-gnu=$(call CFG_RUN_x86_64-pc-windows-gnu,$(HLIB$(1)_H_$(CFG_BUILD)),$(2)) | ||
CFG_GNU_TRIPLE_x86_64-pc-windows-gnu := x86_64-w64-mingw32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.