diff options
| author | O01eg <o01eg@yandex.ru> | 2017-12-07 12:27:12 +0300 |
|---|---|---|
| committer | O01eg <o01eg@yandex.ru> | 2018-01-12 07:11:13 +0300 |
| commit | c87a1086dcca15bf7d6d6209b9bfa0893649202e (patch) | |
| tree | bb870d8b421dbe92a8b1f1ace3164c02ce628c06 /src/bootstrap | |
| parent | 0f5110ea4937e88e88c2192f3fa192717cb405c1 (diff) | |
| download | rust-c87a1086dcca15bf7d6d6209b9bfa0893649202e.tar.gz rust-c87a1086dcca15bf7d6d6209b9bfa0893649202e.zip | |
Build all stages with relative libdirs.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/compile.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs index c8e500a4f68..1db39361aef 100644 --- a/src/bootstrap/compile.rs +++ b/src/bootstrap/compile.rs @@ -500,7 +500,7 @@ impl Step for Rustc { /// Same as `std_cargo`, but for libtest pub fn rustc_cargo(build: &Build, - compiler: &Compiler, + _compiler: &Compiler, target: Interned<String>, cargo: &mut Command) { cargo.arg("--features").arg(build.rustc_features()) @@ -514,13 +514,9 @@ pub fn rustc_cargo(build: &Build, .env("CFG_VERSION", build.rust_version()) .env("CFG_PREFIX", build.config.prefix.clone().unwrap_or_default()); - if compiler.stage == 0 { - cargo.env("CFG_LIBDIR_RELATIVE", "lib"); - } else { - let libdir_relative = - build.config.libdir_relative.clone().unwrap_or(PathBuf::from("lib")); - cargo.env("CFG_LIBDIR_RELATIVE", libdir_relative); - } + let libdir_relative = + build.config.libdir_relative.clone().unwrap_or(PathBuf::from("lib")); + cargo.env("CFG_LIBDIR_RELATIVE", libdir_relative); // If we're not building a compiler with debugging information then remove // these two env vars which would be set otherwise. |
