copy_third_party_objects -> copy_musl_third_party_objects
This commit is contained in:
parent
8f8d88290b
commit
25145b2ef1
@ -93,14 +93,14 @@ pub fn std_link(build: &Build,
|
||||
add_to_sysroot(&out_dir, &libdir);
|
||||
|
||||
if target.contains("musl") && !target.contains("mips") {
|
||||
copy_third_party_objects(build, &libdir);
|
||||
copy_musl_third_party_objects(build, &libdir);
|
||||
}
|
||||
}
|
||||
|
||||
/// Copies the crt(1,i,n).o startup objects
|
||||
///
|
||||
/// Only required for musl targets that statically link to libc
|
||||
fn copy_third_party_objects(build: &Build, into: &Path) {
|
||||
fn copy_musl_third_party_objects(build: &Build, into: &Path) {
|
||||
for &obj in &["crt1.o", "crti.o", "crtn.o"] {
|
||||
copy(&build.config.musl_root.as_ref().unwrap().join("lib").join(obj), &into.join(obj));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user