rustc_target/spec/base/
hyperlight.rs1use crate::spec::{
2 Cc, CodeModel, LinkerFlavor, Lld, Os, PanicStrategy, RelocModel, StackProbeType, TargetOptions,
3};
4
5pub(crate) fn opts() -> TargetOptions {
6 TargetOptions {
7 os: Os::Hyperlight,
8 linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
9 linker: Some("rust-lld".into()),
10 disable_redzone: true,
11 panic_strategy: PanicStrategy::Abort,
12 stack_probes: StackProbeType::Inline,
13 code_model: Some(CodeModel::Small),
14 relocation_model: RelocModel::Pic,
15 position_independent_executables: true,
16 static_position_independent_executables: true,
17 ..Default::default()
18 }
19}