2020-10-08 22:22:28 +03:00
|
|
|
use crate::spec::{Target, TargetOptions};
|
2014-12-12 23:39:27 +00:00
|
|
|
|
2020-10-05 15:37:55 +03:00
|
|
|
pub fn target() -> Target {
|
2020-11-10 23:32:58 +03:00
|
|
|
let mut base = super::linux_gnu_base::opts();
|
2016-10-03 23:45:40 -05:00
|
|
|
base.max_atomic_width = Some(128);
|
2016-10-24 19:33:28 -07:00
|
|
|
|
2020-10-05 15:37:55 +03:00
|
|
|
Target {
|
2014-12-12 23:39:27 +00:00
|
|
|
llvm_target: "aarch64-unknown-linux-gnu".to_string(),
|
2020-10-14 18:08:12 +02:00
|
|
|
pointer_width: 64,
|
2016-07-25 10:21:31 -07:00
|
|
|
data_layout: "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128".to_string(),
|
2014-12-12 23:39:27 +00:00
|
|
|
arch: "aarch64".to_string(),
|
2016-10-24 11:04:04 +02:00
|
|
|
options: TargetOptions {
|
2020-07-08 09:36:52 -04:00
|
|
|
unsupported_abis: super::arm_base::unsupported_abis(),
|
2020-11-08 14:57:55 +03:00
|
|
|
mcount: "\u{1}_mcount".to_string(),
|
2019-12-22 17:42:04 -05:00
|
|
|
..base
|
2016-10-24 11:04:04 +02:00
|
|
|
},
|
2020-10-05 15:37:55 +03:00
|
|
|
}
|
2014-12-12 23:39:27 +00:00
|
|
|
}
|