Skip to content

Commit

Permalink
Auto merge of #62497 - o01eg:fix-62496, r=<try>
Browse files Browse the repository at this point in the history
Fix double resolving custom libdir

Fixes #62496

Related issue is https://bugs.gentoo.org/672816
  • Loading branch information
bors committed Jul 9, 2019
2 parents 5d8ffb5 + c1aa2a4 commit 661f42a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/bootstrap/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,16 +485,19 @@ impl Step for Rustc {
let name = entry.file_name();
if let Some(s) = name.to_str() {
if is_dylib(s) {
builder.install(&entry.path(), &image.join(&libdir_relative), 0o644);
// Don't use custom libdir here because ^lib/ will be resolved again
// with installer
builder.install(&entry.path(), &image.join("lib"), 0o644);
}
}
}
}

// Copy over the codegen backends
let backends_src = builder.sysroot_codegen_backends(compiler);
let backends_rel = backends_src.strip_prefix(&src).unwrap();
let backends_dst = image.join(&backends_rel);
let backends_rel = backends_src.strip_prefix(&libdir).unwrap();
// Don't use custom libdir here because ^lib/ will be resolved again with installer
let backends_dst = image.join("lib").join(&backends_rel);
t!(fs::create_dir_all(&backends_dst));
builder.cp_r(&backends_src, &backends_dst);

Expand Down

0 comments on commit 661f42a

Please sign in to comment.