Skip to main content

rustc_target/spec/base/
serenity.rs

1use crate::spec::{FramePointer, Os, PanicStrategy, RelroLevel, TargetOptions, cvs};
2
3pub(crate) fn opts() -> TargetOptions {
4    TargetOptions {
5        os: Os::Serenity,
6        dynamic_linking: true,
7        frame_pointer: FramePointer::Always,
8        families: ::std::borrow::Cow::Borrowed(&[::std::borrow::Cow::Borrowed("unix")])cvs!["unix"],
9        default_dwarf_version: 5,
10        has_rpath: true,
11        no_default_libraries: false,
12        position_independent_executables: true,
13        static_position_independent_executables: false,
14        relro_level: RelroLevel::Full,
15        has_thread_local: true,
16        panic_strategy: PanicStrategy::Abort,
17        crt_static_default: false,
18        crt_static_respected: false,
19        ..Default::default()
20    }
21}