]>
Commit | Line | Data |
---|---|---|
5869c6ff | 1 | use 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 | 6 | pub 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(); | |
6a06907d | 14 | base.stack_probes = StackProbeType::InlineOrCall { min_llvm_version_for_inline: (11, 0, 1) }; |
223e47cc | 15 | |
29967ef6 | 16 | Target { |
e9174d1e | 17 | llvm_target: "i686-linux-android".to_string(), |
29967ef6 | 18 | pointer_width: 32, |
dfeec247 XL |
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(), | |
e9174d1e | 22 | arch: "x86".to_string(), |
e9174d1e | 23 | options: base, |
29967ef6 | 24 | } |
223e47cc | 25 | } |