]>
Commit | Line | Data |
---|---|---|
cdc7bbd5 | 1 | use 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 | 6 | pub 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(), | |
3c0e092e | 17 | supported_sanitizers: SanitizerSet::CFI | SanitizerSet::HWADDRESS, |
136023e0 XL |
18 | ..super::android_base::opts() |
19 | }, | |
29967ef6 | 20 | } |
85aaf69f | 21 | } |