Do not delete bootstrap.exe on Windows during clean

Windows does not allow deleting currently running executables
This commit is contained in:
Ryan Levick 2021-02-16 10:35:15 +01:00
parent 090dac0c38
commit f52caa76f9

View File

@ -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 {