]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_target/src/spec/freebsd_base.rs
New upstream version 1.54.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / freebsd_base.rs
1 use crate::spec::{RelroLevel, TargetOptions};
2
3 pub fn opts() -> TargetOptions {
4 TargetOptions {
5 os: "freebsd".to_string(),
6 dynamic_linking: true,
7 executables: true,
8 families: vec!["unix".to_string()],
9 has_rpath: true,
10 position_independent_executables: true,
11 eliminate_frame_pointer: false, // FIXME 43575
12 relro_level: RelroLevel::Full,
13 abi_return_struct_as_int: true,
14 dwarf_version: Some(2),
15 ..Default::default()
16 }
17 }