about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoshua Nelson <jnelson@cloudflare.com>2022-06-30 23:05:45 -0500
committerJoshua Nelson <jnelson@cloudflare.com>2022-06-30 23:05:45 -0500
commitcec6933d0dd553322dcd5978fb418cb08347a868 (patch)
tree4215b311798047d848305060ded6f5903d915c53
parentacdcdfb61b7b472bfacbb8bb889bdf3204827f2e (diff)
downloadrust-cec6933d0dd553322dcd5978fb418cb08347a868.tar.gz
rust-cec6933d0dd553322dcd5978fb418cb08347a868.zip
Fix `x dist rust-dev` on a fresh checkout
Previously, it required you to manually run `x build` first, because it
assumed the LLVM binaries were already present.
-rw-r--r--src/bootstrap/dist.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
index 8182d2bf8fb..ae0ac37de1d 100644
--- a/src/bootstrap/dist.rs
+++ b/src/bootstrap/dist.rs
@@ -2031,6 +2031,8 @@ impl Step for RustDev {
         let mut tarball = Tarball::new(builder, "rust-dev", &target.triple);
         tarball.set_overlay(OverlayKind::LLVM);
 
+        builder.ensure(crate::native::Llvm { target });
+
         let src_bindir = builder.llvm_out(target).join("bin");
         // If updating this list, you likely want to change
         // src/bootstrap/download-ci-llvm-stamp as well, otherwise local users