X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fbootstrap%2Fdist.rs;h=7d9b3da48ecb0578e12720eddb115844ecea3b66;hb=1591dcb659917de87254297073b078b9ade56612;hp=5f28ffeda8fee35b30f0fc783e3c2bcfdcd3639d;hpb=d26fc45e5bf170907cefcaa83c5b8e6cf6cb1351;p=rust.git diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 5f28ffeda8f..7d9b3da48ec 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -398,12 +398,12 @@ fn prepare_image(builder: &Builder<'_>, compiler: Compiler, image: &Path) { // component for now. maybe_install_llvm_runtime(builder, host, image); - let src_dir = builder.sysroot_libdir(compiler, host).parent().unwrap().join("bin"); let dst_dir = image.join("lib/rustlib").join(&*host.triple).join("bin"); t!(fs::create_dir_all(&dst_dir)); // Copy over lld if it's there if builder.config.lld_enabled { + let src_dir = builder.sysroot_libdir(compiler, host).parent().unwrap().join("bin"); let rust_lld = exe("rust-lld", compiler.host); builder.copy(&src_dir.join(&rust_lld), &dst_dir.join(&rust_lld)); // for `-Z gcc-ld=lld` @@ -417,10 +417,6 @@ fn prepare_image(builder: &Builder<'_>, compiler: Compiler, image: &Path) { } } - // Copy over llvm-dwp if it's there - let exe = exe("rust-llvm-dwp", compiler.host); - builder.copy(&src_dir.join(&exe), &dst_dir.join(&exe)); - // Man pages t!(fs::create_dir_all(image.join("share/man/man1"))); let man_src = builder.src.join("src/doc/man"); @@ -1564,7 +1560,9 @@ fn filter(contents: &str, marker: &str) -> String { builder.install(&etc.join("gfx/rust-logo.ico"), &exe, 0o644); // Generate msi installer - let wix = PathBuf::from(env::var_os("WIX").unwrap()); + let wix_path = env::var_os("WIX") + .expect("`WIX` environment variable must be set for generating MSI installer(s)."); + let wix = PathBuf::from(wix_path); let heat = wix.join("bin/heat.exe"); let candle = wix.join("bin/candle.exe"); let light = wix.join("bin/light.exe");