Do not delete bootstrap.exe on Windows during clean
Windows does not allow deleting currently running executables
This commit is contained in:
parent
090dac0c38
commit
f52caa76f9
1 changed files with 3 additions and 0 deletions
|
|
@ -21,6 +21,9 @@ pub fn clean(build: &Build, all: bool) {
|
|||
} else {
|
||||
rm_rf(&build.out.join("tmp"));
|
||||
rm_rf(&build.out.join("dist"));
|
||||
// Only delete the bootstrap executable on non-Windows systems
|
||||
// Windows does not allow deleting a currently running executable
|
||||
#[cfg(not(windows))]
|
||||
rm_rf(&build.out.join("bootstrap"));
|
||||
|
||||
for host in &build.hosts {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue