]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/linux_base.rs
New upstream version 1.59.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / linux_base.rs
CommitLineData
cdc7bbd5 1use crate::spec::{RelroLevel, TargetOptions};
1a4d82fc
JJ
2
3pub fn opts() -> TargetOptions {
4 TargetOptions {
29967ef6 5 os: "linux".to_string(),
1a4d82fc
JJ
6 dynamic_linking: true,
7 executables: true,
17df50a5 8 families: vec!["unix".to_string()],
1a4d82fc 9 has_rpath: true,
1a4d82fc 10 position_independent_executables: true,
3b2f2976 11 relro_level: RelroLevel::Full,
a2a8927a 12 has_thread_local: true,
29967ef6 13 crt_static_respected: true,
dfeec247 14 ..Default::default()
1a4d82fc
JJ
15 }
16}