about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--build_system/prepare.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/build_system/prepare.rs b/build_system/prepare.rs
index 0eaa8e820ba..28322c1cb51 100644
--- a/build_system/prepare.rs
+++ b/build_system/prepare.rs
@@ -18,7 +18,14 @@ pub(crate) fn prepare(dirs: &Dirs) {
 
     // FIXME maybe install this only locally?
     eprintln!("[INSTALL] hyperfine");
-    Command::new("cargo").arg("install").arg("hyperfine").spawn().unwrap().wait().unwrap();
+    Command::new("cargo")
+        .arg("install")
+        .arg("hyperfine")
+        .env_remove("CARGO_TARGET_DIR")
+        .spawn()
+        .unwrap()
+        .wait()
+        .unwrap();
 
     super::abi_cafe::ABI_CAFE_REPO.fetch(dirs);
     super::tests::RAND_REPO.fetch(dirs);