]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/i686_unknown_netbsd.rs
Rollup merge of #80567 - lukaslueg:intersperse_with, r=m-ou-se
[rust.git] / compiler / rustc_target / src / spec / i686_unknown_netbsd.rs
1 use crate::spec::{LinkerFlavor, Target, TargetOptions};
2
3 pub fn target() -> Target {
4     let mut base = super::netbsd_base::opts();
5     base.cpu = "pentium4".to_string();
6     base.max_atomic_width = Some(64);
7     base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-m32".to_string());
8     base.stack_probes = true;
9
10     Target {
11         llvm_target: "i686-unknown-netbsdelf".to_string(),
12         pointer_width: 32,
13         data_layout: "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
14             f64:32:64-f80:32-n8:16:32-S128"
15             .to_string(),
16         arch: "x86".to_string(),
17         options: TargetOptions { mcount: "__mcount".to_string(), ..base },
18     }
19 }