
`target.target_endian` -> `target.endian` `target.target_c_int_width` -> `target.c_int_width` `target.target_os` -> `target.os` `target.target_env` -> `target.env` `target.target_vendor` -> `target.vendor` `target.target_family` -> `target.os_family` `target.target_mcount` -> `target.mcount`
16 lines
516 B
Rust
16 lines
516 B
Rust
use crate::spec::crt_objects::{self, CrtObjectsFallback};
|
|
use crate::spec::TargetOptions;
|
|
|
|
pub fn opts() -> TargetOptions {
|
|
let mut base = super::linux_base::opts();
|
|
|
|
base.env = "musl".to_string();
|
|
base.pre_link_objects_fallback = crt_objects::pre_musl_fallback();
|
|
base.post_link_objects_fallback = crt_objects::post_musl_fallback();
|
|
base.crt_objects_fallback = Some(CrtObjectsFallback::Musl);
|
|
|
|
// These targets statically link libc by default
|
|
base.crt_static_default = true;
|
|
|
|
base
|
|
}
|