]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/x86_64_unknown_netbsd.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / x86_64_unknown_netbsd.rs
CommitLineData
2b03887a 1use crate::spec::{Cc, LinkerFlavor, Lld, SanitizerSet, StackProbeType, Target, TargetOptions};
c1a9b12d 2
29967ef6 3pub fn target() -> Target {
c1a9b12d 4 let mut base = super::netbsd_base::opts();
5e7ed085 5 base.cpu = "x86-64".into();
c30ab7b3 6 base.max_atomic_width = Some(64);
2b03887a
FG
7 base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m64"]);
8 base.stack_probes = StackProbeType::X86;
3c0e092e
XL
9 base.supported_sanitizers = SanitizerSet::ADDRESS
10 | SanitizerSet::CFI
11 | SanitizerSet::LEAK
12 | SanitizerSet::MEMORY
13 | SanitizerSet::THREAD;
c1a9b12d 14
29967ef6 15 Target {
5e7ed085 16 llvm_target: "x86_64-unknown-netbsd".into(),
29967ef6 17 pointer_width: 64,
dfeec247 18 data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
5e7ed085
FG
19 .into(),
20 arch: "x86_64".into(),
21 options: TargetOptions { mcount: "__mcount".into(), ..base },
29967ef6 22 }
c1a9b12d 23}