From f492b257e79b44b8544ca1d05b79435c01b9f422 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Thu, 11 Feb 2021 17:45:54 +0100 Subject: [PATCH] dist: include src/build_helper as part of the crate graph for rustc-dev. Since it was missing, it wasn't possible to really use rustc-dev to build, see for instance: https://github.com/rust-analyzer/rust-analyzer/issues/7589. --- src/bootstrap/dist.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index af9c0fb04bc..3ebfdb24879 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -645,6 +645,14 @@ fn run(self, builder: &Builder<'_>) -> Option { &[], &tarball.image_dir().join("lib/rustlib/rustc-src/rust"), ); + // This particular crate is used as a build dependency of the above. + copy_src_dirs( + builder, + &builder.src, + &["src/build_helper"], + &[], + &tarball.image_dir().join("lib/rustlib/rustc-src/rust"), + ); for file in src_files { tarball.add_file(builder.src.join(file), "lib/rustlib/rustc-src/rust", 0o644); }