Skip to content

Commit c87a108

Browse files
committed
Build all stages with relative libdirs.
1 parent 0f5110e commit c87a108

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/bootstrap/compile.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ impl Step for Rustc {
500500

501501
/// Same as `std_cargo`, but for libtest
502502
pub fn rustc_cargo(build: &Build,
503-
compiler: &Compiler,
503+
_compiler: &Compiler,
504504
target: Interned<String>,
505505
cargo: &mut Command) {
506506
cargo.arg("--features").arg(build.rustc_features())
@@ -514,13 +514,9 @@ pub fn rustc_cargo(build: &Build,
514514
.env("CFG_VERSION", build.rust_version())
515515
.env("CFG_PREFIX", build.config.prefix.clone().unwrap_or_default());
516516

517-
if compiler.stage == 0 {
518-
cargo.env("CFG_LIBDIR_RELATIVE", "lib");
519-
} else {
520-
let libdir_relative =
521-
build.config.libdir_relative.clone().unwrap_or(PathBuf::from("lib"));
522-
cargo.env("CFG_LIBDIR_RELATIVE", libdir_relative);
523-
}
517+
let libdir_relative =
518+
build.config.libdir_relative.clone().unwrap_or(PathBuf::from("lib"));
519+
cargo.env("CFG_LIBDIR_RELATIVE", libdir_relative);
524520

525521
// If we're not building a compiler with debugging information then remove
526522
// these two env vars which would be set otherwise.

0 commit comments

Comments
 (0)