mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[arm64e] Add arm64e support into Swift's build system
This commit is contained in:
@@ -106,7 +106,7 @@ endmacro()
|
||||
|
||||
macro(configure_sdks_darwin)
|
||||
set(macosx_arch "x86_64")
|
||||
set(iphoneos_arch "arm64" "armv7")
|
||||
set(iphoneos_arch "arm64" "arm64e" "armv7")
|
||||
set(appletvos_arch "arm64")
|
||||
set(watchos_arch "armv7k")
|
||||
|
||||
|
||||
@@ -3,10 +3,10 @@ option(SWIFT_ENABLE_IOS32
|
||||
TRUE)
|
||||
|
||||
if(SWIFT_ENABLE_IOS32)
|
||||
set(SUPPORTED_IOS_ARCHS "armv7;armv7s;arm64")
|
||||
set(SUPPORTED_IOS_ARCHS "armv7;armv7s;arm64;arm64e")
|
||||
set(SUPPORTED_IOS_SIMULATOR_ARCHS "i386;x86_64")
|
||||
else()
|
||||
set(SUPPORTED_IOS_ARCHS "arm64")
|
||||
set(SUPPORTED_IOS_ARCHS "arm64;arm64e")
|
||||
set(SUPPORTED_IOS_SIMULATOR_ARCHS "x86_64")
|
||||
endif()
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ function(set_if_arch_bitness var_name)
|
||||
set("${var_name}" "${SIA_CASE_32_BIT}" PARENT_SCOPE)
|
||||
elseif("${SIA_ARCH}" STREQUAL "x86_64" OR
|
||||
"${SIA_ARCH}" STREQUAL "arm64" OR
|
||||
"${SIA_ARCH}" STREQUAL "arm64e" OR
|
||||
"${SIA_ARCH}" STREQUAL "aarch64" OR
|
||||
"${SIA_ARCH}" STREQUAL "powerpc64" OR
|
||||
"${SIA_ARCH}" STREQUAL "powerpc64le" OR
|
||||
|
||||
@@ -420,6 +420,7 @@ function verify_host_is_supported() {
|
||||
| iphoneos-armv7 \
|
||||
| iphoneos-armv7s \
|
||||
| iphoneos-arm64 \
|
||||
| iphoneos-arm64e \
|
||||
| appletvsimulator-x86_64 \
|
||||
| appletvos-arm64 \
|
||||
| watchsimulator-i386 \
|
||||
@@ -519,6 +520,13 @@ function set_build_options_for_host() {
|
||||
SWIFT_HOST_TRIPLE="arm64-apple-ios${DARWIN_DEPLOYMENT_VERSION_IOS}"
|
||||
llvm_target_arch="AArch64"
|
||||
|
||||
SWIFT_HOST_VARIANT_SDK="IOS"
|
||||
cmake_osx_deployment_target=""
|
||||
;;
|
||||
iphoneos-arm64e)
|
||||
SWIFT_HOST_TRIPLE="arm64e-apple-ios${DARWIN_DEPLOYMENT_VERSION_IOS}"
|
||||
llvm_target_arch="AArch64"
|
||||
|
||||
SWIFT_HOST_VARIANT_SDK="IOS"
|
||||
cmake_osx_deployment_target=""
|
||||
;;
|
||||
|
||||
@@ -117,7 +117,7 @@ class StdlibDeploymentTarget(object):
|
||||
OSX = DarwinPlatform("macosx", archs=["x86_64"],
|
||||
sdk_name="OSX")
|
||||
|
||||
iOS = DarwinPlatform("iphoneos", archs=["armv7", "armv7s", "arm64"],
|
||||
iOS = DarwinPlatform("iphoneos", archs=["armv7", "armv7s", "arm64", "arm64e"],
|
||||
sdk_name="IOS")
|
||||
iOSSimulator = DarwinPlatform("iphonesimulator", archs=["i386", "x86_64"],
|
||||
sdk_name="IOS_SIMULATOR",
|
||||
|
||||
Reference in New Issue
Block a user