Skip to content

Commit

Permalink
copy_third_party_objects -> copy_musl_third_party_objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Aug 30, 2016
1 parent 8f8d882 commit 25145b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap/compile.rs
Expand Up @@ -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));
}
Expand Down

0 comments on commit 25145b2

Please sign in to comment.