Clean up c_host.o renaming logic

This commit is contained in:
Richard Feldman 2020-11-29 19:57:04 -05:00
parent b57f4b38fa
commit 017b53ce23

View File

@ -132,15 +132,15 @@ pub fn rebuild_host(host_input_path: &Path) {
.unwrap();
validate_output("rust_host.o", "rm", output);
} else {
// Clean up rust_host.o
} else if c_host_dest.exists() {
// Clean up c_host.o
let output = Command::new("mv")
.env_clear()
.args(&[c_host_dest, host_dest])
.output()
.unwrap();
validate_output("rust_host.o", "mv", output);
validate_output("c_host.o", "mv", output);
}
}