mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
11737a3e1d
It was broken as tried to copy dylibs which are actually never been built for iOS
35 lines
2.0 KiB
Makefile
35 lines
2.0 KiB
Makefile
# armv7s-apple-ios configuration
|
|
CFG_SDK_NAME_armv7s-apple-ios := iphoneos
|
|
CFG_SDK_ARCHS_armv7s-apple-ios := armv7s
|
|
ifneq ($(findstring darwin,$(CFG_OSTYPE)),)
|
|
CFG_IOS_SDK_armv7s-apple-ios := $(shell xcrun --show-sdk-path -sdk iphoneos 2>/dev/null)
|
|
CFG_IOS_SDK_FLAGS_armv7s-apple-ios := -target armv7s-apple-ios -isysroot $(CFG_IOS_SDK_armv7s-apple-ios) -mios-version-min=7.0
|
|
CC_armv7s-apple-ios = $(shell xcrun -find -sdk iphoneos clang)
|
|
CXX_armv7s-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
|
|
CPP_armv7s-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
|
|
AR_armv7s-apple-ios = $(shell xcrun -find -sdk iphoneos ar)
|
|
endif
|
|
CFG_LIB_NAME_armv7s-apple-ios = lib$(1).a
|
|
CFG_LIB_GLOB_armv7s-apple-ios = lib$(1)-*.a
|
|
CFG_INSTALL_ONLY_RLIB_armv7s-apple-ios = 1
|
|
CFG_STATIC_LIB_NAME_armv7s-apple-ios=lib$(1).a
|
|
CFG_LIB_DSYM_GLOB_armv7s-apple-ios = lib$(1)-*.a.dSYM
|
|
CFG_JEMALLOC_CFLAGS_armv7s-apple-ios := -arch armv7s -mfpu=vfp4 $(CFG_IOS_SDK_FLAGS_armv7s-apple-ios)
|
|
CFG_GCCISH_CFLAGS_armv7s-apple-ios := -Wall -Werror -g -fPIC $(CFG_IOS_SDK_FLAGS_armv7s-apple-ios) -mfpu=vfp4 -arch armv7s
|
|
CFG_GCCISH_CXXFLAGS_armv7s-apple-ios := -fno-rtti $(CFG_IOS_SDK_FLAGS_armv7s-apple-ios) -I$(CFG_IOS_SDK_armv7s-apple-ios)/usr/include/c++/4.2.1
|
|
CFG_GCCISH_LINK_FLAGS_armv7s-apple-ios := -lpthread -syslibroot $(CFG_IOS_SDK_armv7s-apple-ios) -Wl,-no_compact_unwind
|
|
CFG_GCCISH_DEF_FLAG_armv7s-apple-ios := -Wl,-exported_symbols_list,
|
|
CFG_GCCISH_PRE_LIB_FLAGS_armv7s-apple-ios :=
|
|
CFG_GCCISH_POST_LIB_FLAGS_armv7s-apple-ios :=
|
|
CFG_DEF_SUFFIX_armv7s-apple-ios := .darwin.def
|
|
CFG_LLC_FLAGS_armv7s-apple-ios := -mattr=+vfp4,+v7,+neon
|
|
CFG_INSTALL_NAME_armv7s-apple-ios = -Wl,-install_name,@rpath/$(1)
|
|
CFG_EXE_SUFFIX_armv7s-apple-ios :=
|
|
CFG_WINDOWSY_armv7s-apple-ios :=
|
|
CFG_UNIXY_armv7s-apple-ios := 1
|
|
CFG_PATH_MUNGE_armv7s-apple-ios := true
|
|
CFG_LDPATH_armv7s-apple-ios :=
|
|
CFG_RUN_armv7s-apple-ios = $(2)
|
|
CFG_RUN_TARG_armv7s-apple-ios = $(call CFG_RUN_armv7s-apple-ios,,$(2))
|
|
CFG_GNU_TRIPLE_armv7s-apple-ios := armv7s-apple-ios
|