Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a19b205

Browse files
authoredSep 3, 2024
Unrolled build for rust-lang#129311
Rollup merge of rust-lang#129311 - onur-ozkan:multiple-candidates-fix, r=Kobzol don't copy `.rustc-dev-contents` from CI rustc Since rust-lang#127188, copying files from `.rustc-dev-contents` regressed rust-lang#108767 again. Since `rustc-src` is already included in the CI rustc sysroot, we don't need to copy these files to have `rustc-src` component. Blocker for rust-lang#122709
2 parents 6199b69 + fa6d54f commit a19b205

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed
 

‎src/bootstrap/src/core/build_steps/compile.rs

+2-10
Original file line numberDiff line numberDiff line change
@@ -1692,16 +1692,8 @@ impl Step for Sysroot {
16921692
build_helper::exit!(1);
16931693
}
16941694

1695-
// Unlike rust-src component, we have to handle rustc-src a bit differently.
1696-
// When using CI rustc, we copy rustc-src component from its sysroot,
1697-
// otherwise we handle it in a similar way what we do for rust-src above.
1698-
if builder.download_rustc() {
1699-
cp_rustc_component_to_ci_sysroot(
1700-
builder,
1701-
&sysroot,
1702-
builder.config.ci_rustc_dev_contents(),
1703-
);
1704-
} else {
1695+
// rustc-src component is already part of CI rustc's sysroot
1696+
if !builder.download_rustc() {
17051697
let sysroot_lib_rustlib_rustcsrc = sysroot.join("lib/rustlib/rustc-src");
17061698
t!(fs::create_dir_all(&sysroot_lib_rustlib_rustcsrc));
17071699
let sysroot_lib_rustlib_rustcsrc_rust = sysroot_lib_rustlib_rustcsrc.join("rust");

0 commit comments

Comments
 (0)
Please sign in to comment.