]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/hermit_base.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / hermit_base.rs
CommitLineData
2b03887a 1use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, TargetOptions, TlsModel};
b7449926
XL
2
3pub fn opts() -> TargetOptions {
064997fb 4 let pre_link_args = TargetOptions::link_args(
2b03887a 5 LinkerFlavor::Gnu(Cc::No, Lld::No),
064997fb 6 &["--build-id", "--hash-style=gnu", "--Bstatic"],
dfeec247 7 );
b7449926
XL
8
9 TargetOptions {
5e7ed085 10 os: "hermit".into(),
2b03887a 11 linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
5e7ed085 12 linker: Some("rust-lld".into()),
a2a8927a 13 has_thread_local: true,
e74abb32 14 pre_link_args,
b7449926 15 panic_strategy: PanicStrategy::Abort,
e74abb32 16 position_independent_executables: true,
1b1a35ee 17 static_position_independent_executables: true,
f9f354fc 18 tls_model: TlsModel::InitialExec,
dfeec247 19 ..Default::default()
b7449926
XL
20 }
21}