2022-10-23 17:22:54 -05:00
|
|
|
use super::apple_base::{ios_llvm_target, opts, Arch};
|
2020-10-08 22:22:28 +03:00
|
|
|
use crate::spec::{Target, TargetOptions};
|
2015-01-08 10:19:52 +02:00
|
|
|
|
2020-10-05 15:37:55 +03:00
|
|
|
pub fn target() -> Target {
|
2022-10-23 16:41:36 -05:00
|
|
|
let arch = Arch::Armv7;
|
2020-10-05 15:37:55 +03:00
|
|
|
Target {
|
2022-10-23 17:22:54 -05:00
|
|
|
// Clang automatically chooses a more specific target based on
|
|
|
|
|
// IPHONEOS_DEPLOYMENT_TARGET.
|
|
|
|
|
// This is required for the target to pick the right
|
|
|
|
|
// MACH-O commands, so we do too.
|
|
|
|
|
llvm_target: ios_llvm_target(arch).into(),
|
2020-10-14 18:08:12 +02:00
|
|
|
pointer_width: 32,
|
2022-03-22 11:43:05 +01:00
|
|
|
data_layout: "e-m:o-p:32:32-Fi8-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32".into(),
|
2022-10-23 17:22:54 -05:00
|
|
|
arch: arch.target_arch(),
|
2015-01-08 10:19:52 +02:00
|
|
|
options: TargetOptions {
|
2022-03-22 11:43:05 +01:00
|
|
|
features: "+v7,+vfp3,+neon".into(),
|
2016-10-03 23:45:40 -05:00
|
|
|
max_atomic_width: Some(64),
|
2022-10-23 16:41:36 -05:00
|
|
|
..opts("ios", arch)
|
2015-01-08 10:19:52 +02:00
|
|
|
},
|
2020-10-05 15:37:55 +03:00
|
|
|
}
|
2015-01-08 10:19:52 +02:00
|
|
|
}
|