rustc_target/spec/base/
unikraft_linux_musl.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::spec::{PanicStrategy, RelocModel, TargetOptions, cvs};

pub(crate) 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()
    }
}