]> git.proxmox.com Git - rustc.git/blob - vendor/rustc-ap-rustc_target/src/spec/i686_linux_android.rs
New upstream version 1.52.1+dfsg1
[rustc.git] / vendor / rustc-ap-rustc_target / src / spec / i686_linux_android.rs
1 use crate::spec::{StackProbeType, Target};
2
3 // See https://developer.android.com/ndk/guides/abis.html#x86
4 // for target ABI requirements.
5
6 pub fn target() -> Target {
7 let mut base = super::android_base::opts();
8
9 base.max_atomic_width = Some(64);
10
11 // http://developer.android.com/ndk/guides/abis.html#x86
12 base.cpu = "pentiumpro".to_string();
13 base.features = "+mmx,+sse,+sse2,+sse3,+ssse3".to_string();
14 base.stack_probes = StackProbeType::InlineOrCall { min_llvm_version_for_inline: (11, 0, 1) };
15
16 Target {
17 llvm_target: "i686-linux-android".to_string(),
18 pointer_width: 32,
19 data_layout: "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
20 f64:32:64-f80:32-n8:16:32-S128"
21 .to_string(),
22 arch: "x86".to_string(),
23 options: base,
24 }
25 }