Rollup merge of #48664 - Keruspe:codegen, r=alexcrichton

make codegen-backends directory name configurable

This allows to parallel-install several versions of rust system-wide
Fixes #48263
This commit is contained in:
kennytm
2018-03-04 02:18:25 +08:00
6 changed files with 16 additions and 4 deletions

View File

@@ -464,7 +464,7 @@ impl<'a> Builder<'a> {
pub fn sysroot_codegen_backends(&self, compiler: Compiler) -> PathBuf {
self.sysroot_libdir(compiler, compiler.host)
.with_file_name("codegen-backends")
.with_file_name(self.build.config.rust_codegen_backends_dir.clone())
}
/// Returns the compiler's libdir where it stores the dynamic libraries that