1diff --git a/build.rs b/build.rs
2index 5d5406c..82b7a43 100644
3--- a/build.rs
4+++ b/build.rs
5@@ -37,6 +37,15 @@ fn main() {
6         }
7     }
8
9+    // autocfg generates probe files in $OUT_DIR with nondeterministic contents.
10+    // (In autocfg 1.4, the filenames are nondeterministic as well.)
11+    let out_dir_env = env::var("OUT_DIR").unwrap();
12+    let out_dir = Path::new(&out_dir_env);
13+    std::fs::remove_file(out_dir.join("probe0.ll")).unwrap();
14+    std::fs::remove_file(out_dir.join("probe1.ll")).unwrap();
15+    std::fs::remove_file(out_dir.join("probe2.ll")).unwrap();
16+    std::fs::remove_file(out_dir.join("probe3.ll")).unwrap();
17+
18     autocfg::rerun_path("build.rs");
19
20     write_radix_bases().unwrap();
21