]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_target/src/spec/openbsd_base.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / openbsd_base.rs
1 use crate::spec::{cvs, FramePointer, RelroLevel, TargetOptions};
2
3 pub fn opts() -> TargetOptions {
4 TargetOptions {
5 os: "openbsd".into(),
6 dynamic_linking: true,
7 families: cvs!["unix"],
8 has_rpath: true,
9 abi_return_struct_as_int: true,
10 position_independent_executables: true,
11 frame_pointer: FramePointer::Always, // FIXME 43575: should be MayOmit...
12 relro_level: RelroLevel::Full,
13 default_dwarf_version: 2,
14 ..Default::default()
15 }
16 }