2020-10-05 15:37:55 +03:00
|
|
|
use crate::spec::{LinkerFlavor, Target, TargetOptions};
|
2017-09-05 16:55:25 +00:00
|
|
|
|
2020-10-05 15:37:55 +03:00
|
|
|
pub fn target() -> Target {
|
2017-09-05 16:55:25 +00:00
|
|
|
let mut base = super::linux_musl_base::opts();
|
|
|
|
|
base.max_atomic_width = Some(128);
|
|
|
|
|
|
2020-10-05 15:37:55 +03:00
|
|
|
Target {
|
2017-09-05 16:55:25 +00:00
|
|
|
llvm_target: "aarch64-unknown-linux-musl".to_string(),
|
2020-10-14 18:08:12 +02:00
|
|
|
pointer_width: 64,
|
2017-09-05 16:55:25 +00:00
|
|
|
data_layout: "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128".to_string(),
|
|
|
|
|
arch: "aarch64".to_string(),
|
|
|
|
|
linker_flavor: LinkerFlavor::Gcc,
|
|
|
|
|
options: TargetOptions {
|
2020-07-08 09:36:52 -04:00
|
|
|
unsupported_abis: super::arm_base::unsupported_abis(),
|
2019-03-31 23:17:49 +09:00
|
|
|
target_mcount: "\u{1}_mcount".to_string(),
|
2019-12-22 17:42:04 -05:00
|
|
|
..base
|
2017-09-05 16:55:25 +00:00
|
|
|
},
|
2020-10-05 15:37:55 +03:00
|
|
|
}
|
2017-09-05 16:55:25 +00:00
|
|
|
}
|