]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/openbsd_base.rs
Auto merge of #84842 - blkerby:null_lowercase, r=joshtriplett
[rust.git] / compiler / rustc_target / src / spec / openbsd_base.rs
1 use crate::spec::{RelroLevel, TargetOptions};
2
3 pub fn opts() -> TargetOptions {
4     TargetOptions {
5         os: "openbsd".to_string(),
6         dynamic_linking: true,
7         executables: true,
8         families: vec!["unix".to_string()],
9         linker_is_gnu: true,
10         has_rpath: true,
11         abi_return_struct_as_int: true,
12         position_independent_executables: true,
13         eliminate_frame_pointer: false, // FIXME 43575
14         relro_level: RelroLevel::Full,
15         dwarf_version: Some(2),
16         ..Default::default()
17     }
18 }