From d7b02c307d0b40f076a172b1ebd6d2e5d6e4cb98 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Thu, 1 Dec 2022 15:24:45 +0000 Subject: [PATCH] Fix installing hyperfine --- build_system/prepare.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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);