We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a12d31d commit d560574Copy full SHA for d560574
src/bootstrap/download.rs
@@ -340,9 +340,12 @@ impl Config {
340
let rustfmt_path = bin_root.join("bin").join(exe("rustfmt", host));
341
let rustfmt_stamp = bin_root.join(".rustfmt-stamp");
342
343
- let legacy_rustfmt = self.initial_rustc.with_file_name(exe("rustfmt", host));
344
- if !legacy_rustfmt.exists() {
345
- t!(self.symlink_file(&rustfmt_path, &legacy_rustfmt));
+ #[cfg(not(windows))]
+ {
+ let legacy_rustfmt = self.initial_rustc.with_file_name(exe("rustfmt", host));
346
+ if !legacy_rustfmt.exists() {
347
+ t!(self.symlink_file(&rustfmt_path, &legacy_rustfmt));
348
+ }
349
}
350
351
if rustfmt_path.exists() && !program_out_of_date(&rustfmt_stamp, &channel) {
0 commit comments