]>
Commit | Line | Data |
---|---|---|
29967ef6 | 1 | use crate::spec::{LinkerFlavor, Target}; |
cc61c64b | 2 | |
29967ef6 | 3 | pub fn target() -> Target { |
cc61c64b XL |
4 | let mut base = super::android_base::opts(); |
5 | base.cpu = "x86-64".to_string(); | |
6 | // https://developer.android.com/ndk/guides/abis.html#86-64 | |
7 | base.features = "+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt".to_string(); | |
8 | base.max_atomic_width = Some(64); | |
9 | base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-m64".to_string()); | |
041b39d2 | 10 | base.stack_probes = true; |
cc61c64b | 11 | |
29967ef6 | 12 | Target { |
cc61c64b | 13 | llvm_target: "x86_64-linux-android".to_string(), |
29967ef6 | 14 | pointer_width: 64, |
dfeec247 XL |
15 | data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" |
16 | .to_string(), | |
cc61c64b | 17 | arch: "x86_64".to_string(), |
cc61c64b | 18 | options: base, |
29967ef6 | 19 | } |
cc61c64b | 20 | } |