]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #73456 - tmiasko:musl-libdir, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Tue, 30 Jun 2020 15:41:50 +0000 (15:41 +0000)
committerbors <bors@rust-lang.org>
Tue, 30 Jun 2020 15:41:50 +0000 (15:41 +0000)
bootstrap: Configurable musl libdir

Make it possible to customize the location of musl libdir using
musl-libdir in config.toml, e.g., to use lib64 instead of lib.

1  2 
config.toml.example
src/bootstrap/compile.rs
src/bootstrap/lib.rs

Simple merge
index b07ff21755e0cae97296bc2027241624b2b1d274,62bca0015c063056688bae2d38f503932ed78ff2..84545dcedb6d972480c1026dd6494bfcefc88178
@@@ -177,16 -133,9 +177,16 @@@ fn copy_self_contained_objects
      // To do that we have to distribute musl startup objects as a part of Rust toolchain
      // and link with them manually in the self-contained mode.
      if target.contains("musl") {
-         let srcdir = builder.musl_root(target).unwrap().join("lib");
+         let srcdir = builder.musl_libdir(target).unwrap();
          for &obj in &["crt1.o", "Scrt1.o", "rcrt1.o", "crti.o", "crtn.o"] {
 -            copy_and_stamp(&srcdir, obj);
 +            copy_and_stamp(
 +                builder,
 +                &libdir_self_contained,
 +                &srcdir,
 +                obj,
 +                &mut target_deps,
 +                DependencyType::TargetSelfContained,
 +            );
          }
      } else if target.ends_with("-wasi") {
          let srcdir = builder.wasi_root(target).unwrap().join("lib/wasm32-wasi");
Simple merge