2020-10-08 19:22:28 +00:00
|
|
|
use crate::spec::{Target, TargetOptions};
|
2019-02-02 15:41:38 +00:00
|
|
|
|
2020-10-05 12:37:55 +00:00
|
|
|
pub fn target() -> Target {
|
|
|
|
Target {
|
2022-03-22 10:43:05 +00:00
|
|
|
llvm_target: "armv6-unknown-freebsd-gnueabihf".into(),
|
2020-10-14 16:08:12 +00:00
|
|
|
pointer_width: 32,
|
2022-03-22 10:43:05 +00:00
|
|
|
data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
|
|
|
|
arch: "arm".into(),
|
2019-02-02 15:41:38 +00:00
|
|
|
options: TargetOptions {
|
2022-03-22 10:43:05 +00:00
|
|
|
abi: "eabihf".into(),
|
2021-07-07 05:00:53 +00:00
|
|
|
// FIXME: change env to "gnu" when cfg_target_abi becomes stable
|
2022-03-22 10:43:05 +00:00
|
|
|
env: "gnueabihf".into(),
|
|
|
|
features: "+v6,+vfp2,-d32".into(),
|
2019-02-02 15:41:38 +00:00
|
|
|
max_atomic_width: Some(64),
|
2022-03-22 10:43:05 +00:00
|
|
|
mcount: "\u{1}__gnu_mcount_nc".into(),
|
2021-06-11 11:22:13 +00:00
|
|
|
..super::freebsd_base::opts()
|
2019-02-02 15:41:38 +00:00
|
|
|
},
|
2020-10-05 12:37:55 +00:00
|
|
|
}
|
2019-02-02 15:41:38 +00:00
|
|
|
}
|