Fixed support for macOS Catalyst for Apple Silicon
This commit is contained in:
parent
8e863eb59a
commit
a1670aa9f5
|
@ -4,12 +4,12 @@ use crate::spec::{Target, TargetOptions};
|
||||||
pub fn target() -> Target {
|
pub fn target() -> Target {
|
||||||
let base = opts("ios", Arch::Arm64_macabi);
|
let base = opts("ios", Arch::Arm64_macabi);
|
||||||
Target {
|
Target {
|
||||||
llvm_target: "arm64-apple-ios-macabi".to_string(),
|
llvm_target: "arm64-apple-ios14.0-macabi".to_string(),
|
||||||
pointer_width: 64,
|
pointer_width: 64,
|
||||||
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128".to_string(),
|
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128".to_string(),
|
||||||
arch: "aarch64".to_string(),
|
arch: "aarch64".to_string(),
|
||||||
options: TargetOptions {
|
options: TargetOptions {
|
||||||
features: "+neon,+fp-armv8,+apple-a7".to_string(),
|
features: "+neon,+fp-armv8,+apple-a12".to_string(),
|
||||||
eliminate_frame_pointer: false,
|
eliminate_frame_pointer: false,
|
||||||
max_atomic_width: Some(128),
|
max_atomic_width: Some(128),
|
||||||
unsupported_abis: super::arm_base::unsupported_abis(),
|
unsupported_abis: super::arm_base::unsupported_abis(),
|
||||||
|
@ -18,11 +18,9 @@ pub fn target() -> Target {
|
||||||
// These arguments are not actually invoked - they just have
|
// These arguments are not actually invoked - they just have
|
||||||
// to look right to pass App Store validation.
|
// to look right to pass App Store validation.
|
||||||
bitcode_llvm_cmdline: "-triple\0\
|
bitcode_llvm_cmdline: "-triple\0\
|
||||||
arm64-apple-ios-macabi\0\
|
arm64-apple-ios14.0-macabi\0\
|
||||||
-emit-obj\0\
|
-emit-obj\0\
|
||||||
-disable-llvm-passes\0\
|
-disable-llvm-passes\0\
|
||||||
-target-abi\0\
|
|
||||||
darwinpcs\0\
|
|
||||||
-Os\0"
|
-Os\0"
|
||||||
.to_string(),
|
.to_string(),
|
||||||
..base
|
..base
|
||||||
|
|
Loading…
Reference in New Issue