]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/aarch64_linux_android.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / aarch64_linux_android.rs
CommitLineData
cdc7bbd5 1use crate::spec::{SanitizerSet, Target, TargetOptions};
85aaf69f 2
476ff2be
SL
3// See https://developer.android.com/ndk/guides/abis.html#arm64-v8a
4// for target ABI requirements.
5
29967ef6 6pub fn target() -> Target {
29967ef6 7 Target {
85aaf69f 8 llvm_target: "aarch64-linux-android".to_string(),
29967ef6 9 pointer_width: 64,
5bcae85e 10 data_layout: "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128".to_string(),
85aaf69f 11 arch: "aarch64".to_string(),
136023e0
XL
12 options: TargetOptions {
13 max_atomic_width: Some(128),
14 // As documented in https://developer.android.com/ndk/guides/cpu-features.html
15 // the neon (ASIMD) and FP must exist on all android aarch64 targets.
16 features: "+neon,+fp-armv8".to_string(),
5099ac24
FG
17 supported_sanitizers: SanitizerSet::CFI
18 | SanitizerSet::HWADDRESS
19 | SanitizerSet::MEMTAG,
136023e0
XL
20 ..super::android_base::opts()
21 },
29967ef6 22 }
85aaf69f 23}