1 use crate::spec
::{LinkArgs, LinkerFlavor, Target, TargetResult}
;
3 pub fn target() -> TargetResult
{
4 let mut base
= super::linux_musl_base
::opts();
5 base
.cpu
= "hexagonv60".to_string();
6 base
.max_atomic_width
= Some(32);
7 // FIXME: HVX length defaults are per-CPU
8 base
.features
= "-small-data,+hvx-length128b".to_string();
10 base
.crt_static_default
= false;
11 base
.atomic_cas
= true;
12 base
.has_rpath
= true;
13 base
.linker_is_gnu
= false;
14 base
.dynamic_linking
= true;
15 base
.executables
= true;
17 base
.pre_link_args
= LinkArgs
::new();
18 base
.post_link_args
= LinkArgs
::new();
21 llvm_target
: "hexagon-unknown-linux-musl".to_string(),
22 target_endian
: "little".to_string(),
23 target_pointer_width
: "32".to_string(),
24 target_c_int_width
: "32".to_string(),
26 "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32",
27 ":32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32",
28 ":32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048",
32 arch
: "hexagon".to_string(),
33 target_os
: "linux".to_string(),
34 target_env
: "musl".to_string(),
35 target_vendor
: "unknown".to_string(),
36 linker_flavor
: LinkerFlavor
::Gcc
,