]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/redox_base.rs
Auto merge of #83774 - richkadel:zero-based-counters, r=tmandry
[rust.git] / compiler / rustc_target / src / spec / redox_base.rs
1 use crate::spec::{RelroLevel, TargetOptions};
2
3 pub fn opts() -> TargetOptions {
4     TargetOptions {
5         os: "redox".to_string(),
6         env: "relibc".to_string(),
7         dynamic_linking: true,
8         executables: true,
9         os_family: Some("unix".to_string()),
10         linker_is_gnu: true,
11         has_rpath: true,
12         position_independent_executables: true,
13         relro_level: RelroLevel::Full,
14         has_elf_tls: true,
15         crt_static_default: true,
16         crt_static_respected: true,
17         ..Default::default()
18     }
19 }