We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21f89e7 + 19cf120 commit ad59158Copy full SHA for ad59158
build.rs
@@ -203,7 +203,7 @@ fn compile_probe(rustc_bootstrap: bool) -> bool {
203
// file in OUT_DIR, which causes nonreproducible builds in build systems
204
// that treat the entire OUT_DIR as an artifact.
205
if let Err(err) = fs::remove_dir_all(&out_subdir) {
206
- if err.kind() != ErrorKind::NotFound {
+ if err.kind() != ErrorKind::NotFound && err.kind() != ErrorKind::DirectoryNotEmpty {
207
eprintln!("Failed to clean up {}: {}", out_subdir.display(), err);
208
process::exit(1);
209
}
0 commit comments