]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/i686_linux_android.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / compiler / rustc_target / src / spec / i686_linux_android.rs
CommitLineData
5869c6ff 1use crate::spec::{StackProbeType, Target};
223e47cc 2
476ff2be
SL
3// See https://developer.android.com/ndk/guides/abis.html#x86
4// for target ABI requirements.
5
29967ef6 6pub fn target() -> Target {
e9174d1e 7 let mut base = super::android_base::opts();
a7813a04 8
c30ab7b3 9 base.max_atomic_width = Some(64);
a7813a04
XL
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();
36d6ef2b
XL
14 // don't use probe-stack=inline-asm until rust#83139 and rust#84667 are resolved
15 base.stack_probes = StackProbeType::Call;
223e47cc 16
29967ef6 17 Target {
e9174d1e 18 llvm_target: "i686-linux-android".to_string(),
29967ef6 19 pointer_width: 32,
dfeec247
XL
20 data_layout: "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
21 f64:32:64-f80:32-n8:16:32-S128"
22 .to_string(),
e9174d1e 23 arch: "x86".to_string(),
e9174d1e 24 options: base,
29967ef6 25 }
223e47cc 26}