Skip to content

Commit f492b25

Browse files
committed
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: rust-lang/rust-analyzer#7589.
1 parent 2918062 commit f492b25

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/bootstrap/dist.rs

+8
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,14 @@ impl Step for RustcDev {
645645
&[],
646646
&tarball.image_dir().join("lib/rustlib/rustc-src/rust"),
647647
);
648+
// This particular crate is used as a build dependency of the above.
649+
copy_src_dirs(
650+
builder,
651+
&builder.src,
652+
&["src/build_helper"],
653+
&[],
654+
&tarball.image_dir().join("lib/rustlib/rustc-src/rust"),
655+
);
648656
for file in src_files {
649657
tarball.add_file(builder.src.join(file), "lib/rustlib/rustc-src/rust", 0o644);
650658
}

0 commit comments

Comments
 (0)