]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/x86_64_rumprun_netbsd.rs
Rollup merge of #79849 - Digital-Chaos:sleep-zero, r=m-ou-se
[rust.git] / compiler / rustc_target / src / spec / x86_64_rumprun_netbsd.rs
1 use crate::spec::{LinkerFlavor, StackProbeType, Target, TargetOptions};
2
3 pub fn target() -> Target {
4     let mut base = super::netbsd_base::opts();
5     base.vendor = "rumprun".to_string();
6     base.cpu = "x86-64".to_string();
7     base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-m64".to_string());
8     base.linker = Some("x86_64-rumprun-netbsd-gcc".to_string());
9     base.max_atomic_width = Some(64);
10
11     base.dynamic_linking = false;
12     base.has_rpath = false;
13     base.position_independent_executables = false;
14     base.disable_redzone = true;
15     base.stack_probes = StackProbeType::InlineOrCall { min_llvm_version_for_inline: (11, 0, 1) };
16
17     Target {
18         llvm_target: "x86_64-rumprun-netbsd".to_string(),
19         pointer_width: 64,
20         data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
21             .to_string(),
22         arch: "x86_64".to_string(),
23         options: TargetOptions { mcount: "__mcount".to_string(), ..base },
24     }
25 }