]> git.lizzy.rs Git - rust.git/blob - mk/cfg/arm-apple-ios
auto merge of #18192 : jmesmon/rust/platform-generic, r=alexcrichton
[rust.git] / mk / cfg / arm-apple-ios
1 # arm-apple-ios configuration
2 CFG_SDK_NAME_arm-apple-ios = iphoneos
3 CFG_SDK_ARCHS_arm-apple-ios = armv7
4 ifneq ($(findstring darwin,$(CFG_OSTYPE)),)
5 CFG_IOS_SDK = $(shell xcrun --show-sdk-path -sdk iphoneos 2>/dev/null)
6 CFG_IOS_FLAGS = -target armv7-apple-darwin -isysroot $(CFG_IOS_SDK) -mios-version-min=7.0
7 CC_arm-apple-ios = $(shell xcrun -find -sdk iphoneos clang)
8 CXX_arm-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
9 CPP_arm-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
10 AR_arm-apple-ios = $(shell xcrun -find -sdk iphoneos ar)
11 endif
12 CFG_LIB_NAME_arm-apple-ios = lib$(1).a
13 CFG_LIB_GLOB_arm-apple-ios = lib$(1)-*.a
14 CFG_STATIC_LIB_NAME_arm-apple-ios=lib$(1).a
15 CFG_LIB_DSYM_GLOB_arm-apple-ios = lib$(1)-*.a.dSYM
16 CFG_CFLAGS_arm-apple-ios := -arch armv7 -mfpu=vfp3 $(CFG_IOS_FLAGS)
17 CFG_GCCISH_CFLAGS_arm-apple-ios := -Wall -Werror -g -fPIC $(CFG_IOS_FLAGS) -mfpu=vfp3 -arch armv7
18 CFG_GCCISH_CXXFLAGS_arm-apple-ios := -fno-rtti $(CFG_IOS_FLAGS) -I$(CFG_IOS_SDK)/usr/include/c++/4.2.1
19 CFG_GCCISH_LINK_FLAGS_arm-apple-ios := -lpthread -syslibroot $(CFG_IOS_SDK) -Wl,-no_compact_unwind
20 CFG_GCCISH_DEF_FLAG_arm-apple-ios := -Wl,-exported_symbols_list,
21 CFG_GCCISH_PRE_LIB_FLAGS_arm-apple-ios :=
22 CFG_GCCISH_POST_LIB_FLAGS_arm-apple-ios :=
23 CFG_DEF_SUFFIX_arm-apple-ios := .darwin.def
24 CFG_LLC_FLAGS_arm-apple-ios := -mattr=+vfp3,+v7,+thumb2,+neon -march=arm
25 CFG_INSTALL_NAME_arm-apple-ios = -Wl,-install_name,@rpath/$(1)
26 CFG_EXE_SUFFIX_arm-apple-ios :=
27 CFG_WINDOWSY_arm-apple-ios :=
28 CFG_UNIXY_arm-apple-ios := 1
29 CFG_PATH_MUNGE_arm-apple-ios := true
30 CFG_LDPATH_arm-apple-ios :=
31 CFG_RUN_arm-apple-ios = $(2)
32 CFG_RUN_TARG_arm-apple-ios = $(call CFG_RUN_arm-apple-ios,,$(2))
33 RUSTC_FLAGS_arm-apple-ios := -C relocation_model=pic
34 RUSTC_CROSS_FLAGS_arm-apple-ios :=-C relocation_model=pic