6b130e3dd9
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]
36 lines
1.8 KiB
Plaintext
36 lines
1.8 KiB
Plaintext
# arm-apple-ios configuration
|
|
CFG_SDK_NAME_arm-apple-ios = iphoneos
|
|
CFG_SDK_ARCHS_arm-apple-ios = armv7
|
|
ifneq ($(findstring darwin,$(CFG_OSTYPE)),)
|
|
CFG_IOS_SDK = $(shell xcrun --show-sdk-path -sdk iphoneos 2>/dev/null)
|
|
CFG_IOS_FLAGS = -target armv7-apple-ios -isysroot $(CFG_IOS_SDK) -mios-version-min=7.0
|
|
CC_arm-apple-ios = $(shell xcrun -find -sdk iphoneos clang)
|
|
CXX_arm-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
|
|
CPP_arm-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
|
|
AR_arm-apple-ios = $(shell xcrun -find -sdk iphoneos ar)
|
|
endif
|
|
CFG_LIB_NAME_arm-apple-ios = lib$(1).a
|
|
CFG_LIB_GLOB_arm-apple-ios = lib$(1)-*.a
|
|
CFG_STATIC_LIB_NAME_arm-apple-ios=lib$(1).a
|
|
CFG_LIB_DSYM_GLOB_arm-apple-ios = lib$(1)-*.a.dSYM
|
|
CFG_CFLAGS_arm-apple-ios := -arch armv7 -mfpu=vfp3 $(CFG_IOS_FLAGS)
|
|
CFG_GCCISH_CFLAGS_arm-apple-ios := -Wall -Werror -g -fPIC $(CFG_IOS_FLAGS) -mfpu=vfp3 -arch armv7
|
|
CFG_GCCISH_CXXFLAGS_arm-apple-ios := -fno-rtti $(CFG_IOS_FLAGS) -I$(CFG_IOS_SDK)/usr/include/c++/4.2.1
|
|
CFG_GCCISH_LINK_FLAGS_arm-apple-ios := -lpthread -syslibroot $(CFG_IOS_SDK) -Wl,-no_compact_unwind
|
|
CFG_GCCISH_DEF_FLAG_arm-apple-ios := -Wl,-exported_symbols_list,
|
|
CFG_GCCISH_PRE_LIB_FLAGS_arm-apple-ios :=
|
|
CFG_GCCISH_POST_LIB_FLAGS_arm-apple-ios :=
|
|
CFG_DEF_SUFFIX_arm-apple-ios := .darwin.def
|
|
CFG_LLC_FLAGS_arm-apple-ios := -mattr=+vfp3,+v7,+thumb2,+neon -march=arm
|
|
CFG_INSTALL_NAME_arm-apple-ios = -Wl,-install_name,@rpath/$(1)
|
|
CFG_EXE_SUFFIX_arm-apple-ios :=
|
|
CFG_WINDOWSY_arm-apple-ios :=
|
|
CFG_UNIXY_arm-apple-ios := 1
|
|
CFG_PATH_MUNGE_arm-apple-ios := true
|
|
CFG_LDPATH_arm-apple-ios :=
|
|
CFG_RUN_arm-apple-ios = $(2)
|
|
CFG_RUN_TARG_arm-apple-ios = $(call CFG_RUN_arm-apple-ios,,$(2))
|
|
RUSTC_FLAGS_arm-apple-ios := -C relocation_model=pic
|
|
RUSTC_CROSS_FLAGS_arm-apple-ios :=-C relocation_model=pic
|
|
CFG_GNU_TRIPLE_arm-apple-ios := arm-apple-ios
|