]> git.lizzy.rs Git - rust.git/blob - src/librustc_target/spec/i386_apple_ios.rs
Auto merge of #68414 - michaelwoerister:share-drop-glue, r=alexcrichton
[rust.git] / src / librustc_target / spec / i386_apple_ios.rs
1 use super::apple_ios_base::{opts, Arch};
2 use crate::spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
3
4 pub fn target() -> TargetResult {
5     let base = opts(Arch::I386)?;
6     Ok(Target {
7         llvm_target: "i386-apple-ios".to_string(),
8         target_endian: "little".to_string(),
9         target_pointer_width: "32".to_string(),
10         target_c_int_width: "32".to_string(),
11         data_layout: "e-m:o-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
12             f64:32:64-f80:128-n8:16:32-S128"
13             .to_string(),
14         arch: "x86".to_string(),
15         target_os: "ios".to_string(),
16         target_env: String::new(),
17         target_vendor: "apple".to_string(),
18         linker_flavor: LinkerFlavor::Gcc,
19         options: TargetOptions { max_atomic_width: Some(64), stack_probes: true, ..base },
20     })
21 }