We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1ab3b7 commit bdc4acbCopy full SHA for bdc4acb
src/bootstrap/compile.rs
@@ -1155,6 +1155,20 @@ impl Step for Sysroot {
1155
);
1156
}
1157
1158
+ // Same for the rustc-src component.
1159
+ let sysroot_lib_rustlib_rustcsrc = sysroot.join("lib/rustlib/rustc-src");
1160
+ t!(fs::create_dir_all(&sysroot_lib_rustlib_rustcsrc));
1161
+ let sysroot_lib_rustlib_rustcsrc_rust = sysroot_lib_rustlib_rustcsrc.join("rust");
1162
+ if let Err(e) =
1163
+ symlink_dir(&builder.config, &builder.src, &sysroot_lib_rustlib_rustcsrc_rust)
1164
+ {
1165
+ eprintln!(
1166
+ "warning: creating symbolic link `{}` to `{}` failed with {}",
1167
+ sysroot_lib_rustlib_rustcsrc_rust.display(),
1168
+ builder.src.display(),
1169
+ e,
1170
+ );
1171
+ }
1172
1173
INTERNER.intern_path(sysroot)
1174
0 commit comments