mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Clean up c_host.o renaming logic
This commit is contained in:
parent
b57f4b38fa
commit
017b53ce23
1 changed files with 3 additions and 3 deletions
|
@ -132,15 +132,15 @@ pub fn rebuild_host(host_input_path: &Path) {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
validate_output("rust_host.o", "rm", output);
|
validate_output("rust_host.o", "rm", output);
|
||||||
} else {
|
} else if c_host_dest.exists() {
|
||||||
// Clean up rust_host.o
|
// Clean up c_host.o
|
||||||
let output = Command::new("mv")
|
let output = Command::new("mv")
|
||||||
.env_clear()
|
.env_clear()
|
||||||
.args(&[c_host_dest, host_dest])
|
.args(&[c_host_dest, host_dest])
|
||||||
.output()
|
.output()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
validate_output("rust_host.o", "mv", output);
|
validate_output("c_host.o", "mv", output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue