]> git.lizzy.rs Git - rust.git/blob - src/librustc_target/spec/x86_64_rumprun_netbsd.rs
Rollup merge of #67313 - oli-obk:document_all_the_t̶h̶i̶n̶g̶s̶dataflow, r=ecstatic...
[rust.git] / src / librustc_target / spec / x86_64_rumprun_netbsd.rs
1 use crate::spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
2
3 pub fn target() -> TargetResult {
4     let mut base = super::netbsd_base::opts();
5     base.cpu = "x86-64".to_string();
6     base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-m64".to_string());
7     base.linker = Some("x86_64-rumprun-netbsd-gcc".to_string());
8     base.max_atomic_width = Some(64);
9
10     base.dynamic_linking = false;
11     base.has_rpath = false;
12     base.position_independent_executables = false;
13     base.disable_redzone = true;
14     base.stack_probes = true;
15
16     Ok(Target {
17         llvm_target: "x86_64-rumprun-netbsd".to_string(),
18         target_endian: "little".to_string(),
19         target_pointer_width: "64".to_string(),
20         target_c_int_width: "32".to_string(),
21         data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
22             .to_string(),
23         arch: "x86_64".to_string(),
24         target_os: "netbsd".to_string(),
25         target_env: String::new(),
26         target_vendor: "rumprun".to_string(),
27         linker_flavor: LinkerFlavor::Gcc,
28         options: TargetOptions { target_mcount: "__mcount".to_string(), ..base },
29     })
30 }