We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 090dac0 commit f52caa7Copy full SHA for f52caa7
src/bootstrap/clean.rs
@@ -21,6 +21,9 @@ pub fn clean(build: &Build, all: bool) {
21
} else {
22
rm_rf(&build.out.join("tmp"));
23
rm_rf(&build.out.join("dist"));
24
+ // Only delete the bootstrap executable on non-Windows systems
25
+ // Windows does not allow deleting a currently running executable
26
+ #[cfg(not(windows))]
27
rm_rf(&build.out.join("bootstrap"));
28
29
for host in &build.hosts {
0 commit comments