summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_target/src/spec/unikraft_linux_musl_base.rs
blob: 9ccd0a1e7caecbc0b9e81daac73412cea99d5b38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::spec::{cvs, PanicStrategy, RelocModel, TargetOptions};

pub fn opts() -> TargetOptions {
    TargetOptions {
        os: "linux".into(),
        env: "musl".into(),
        vendor: "unikraft".into(),
        linker: Some("kraftld".into()),
        relocation_model: RelocModel::Static,
        families: cvs!["unix"],
        has_thread_local: true,
        panic_strategy: PanicStrategy::Abort,
        ..Default::default()
    }
}