blob: a29635112fffaab5e0e57b2e51c5aa3f887d4a4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use crate::spec::{base, crt_objects, LinkSelfContainedDefault, TargetOptions};
pub(crate) fn opts() -> TargetOptions {
let mut base = base::linux::opts();
base.env = "musl".into();
base.pre_link_objects_self_contained = crt_objects::pre_musl_self_contained();
base.post_link_objects_self_contained = crt_objects::post_musl_self_contained();
base.link_self_contained = LinkSelfContainedDefault::InferredForMusl;
// These targets statically link libc by default
base.crt_static_default = true;
base
}
|