We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 28a1baf + bdc4acb commit 646e0d3Copy full SHA for 646e0d3
src/bootstrap/compile.rs
@@ -1177,6 +1177,20 @@ impl Step for Sysroot {
1177
);
1178
}
1179
1180
+ // Same for the rustc-src component.
1181
+ let sysroot_lib_rustlib_rustcsrc = sysroot.join("lib/rustlib/rustc-src");
1182
+ t!(fs::create_dir_all(&sysroot_lib_rustlib_rustcsrc));
1183
+ let sysroot_lib_rustlib_rustcsrc_rust = sysroot_lib_rustlib_rustcsrc.join("rust");
1184
+ if let Err(e) =
1185
+ symlink_dir(&builder.config, &builder.src, &sysroot_lib_rustlib_rustcsrc_rust)
1186
+ {
1187
+ eprintln!(
1188
+ "warning: creating symbolic link `{}` to `{}` failed with {}",
1189
+ sysroot_lib_rustlib_rustcsrc_rust.display(),
1190
+ builder.src.display(),
1191
+ e,
1192
+ );
1193
+ }
1194
1195
INTERNER.intern_path(sysroot)
1196
0 commit comments