We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a40c5a3 commit 5842d3eCopy full SHA for 5842d3e
collector/src/bin/rustc-perf-collector/execute.rs
@@ -339,7 +339,12 @@ lazy_static::lazy_static! {
339
fake_rustdoc.push("rustdoc-fake");
340
// link from rustc-fake to rustdoc-fake
341
if !fake_rustdoc.exists() {
342
- std::fs::hard_link(&*FAKE_RUSTC, &fake_rustdoc).expect("failed to make hard link");
+ #[cfg(unix)]
343
+ use std::os::unix::fs::symlink;
344
+ #[cfg(windows)]
345
+ use std::os::windows::fs::symlink_file as symlink;
346
+
347
+ symlink(&*FAKE_RUSTC, &fake_rustdoc).expect("failed to make symbolic link");
348
}
349
fake_rustdoc
350
};
0 commit comments