]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/openbsd_base.rs
Auto merge of #97800 - pnkfelix:issue-97463-fix-aarch64-call-abi-does-not-zeroext...
[rust.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 }