]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/redox_base.rs
Simplify attribute handling in `parse_bottom_expr`.
[rust.git] / compiler / rustc_target / src / spec / redox_base.rs
1 use crate::spec::{cvs, RelroLevel, TargetOptions};
2
3 pub fn opts() -> TargetOptions {
4     TargetOptions {
5         os: "redox".into(),
6         env: "relibc".into(),
7         dynamic_linking: true,
8         families: cvs!["unix"],
9         has_rpath: true,
10         position_independent_executables: true,
11         relro_level: RelroLevel::Full,
12         has_thread_local: true,
13         crt_static_default: true,
14         crt_static_respected: true,
15         ..Default::default()
16     }
17 }