]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/linux_kernel_base.rs
Merge commit '98e2b9f25b6db4b2680a3d388456d9f95cb28344' into clippyup
[rust.git] / compiler / rustc_target / src / spec / linux_kernel_base.rs
1 use crate::spec::{PanicStrategy, RelocModel, RelroLevel, StackProbeType, TargetOptions};
2
3 pub fn opts() -> TargetOptions {
4     TargetOptions {
5         env: "gnu".to_string(),
6         disable_redzone: true,
7         panic_strategy: PanicStrategy::Abort,
8         stack_probes: StackProbeType::InlineOrCall { min_llvm_version_for_inline: (11, 0, 1) },
9         eliminate_frame_pointer: false,
10         linker_is_gnu: true,
11         position_independent_executables: true,
12         needs_plt: true,
13         relro_level: RelroLevel::Full,
14         relocation_model: RelocModel::Static,
15
16         ..Default::default()
17     }
18 }