We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4632c61 commit 2ed9f4eCopy full SHA for 2ed9f4e
miri-script/src/util.rs
@@ -62,7 +62,10 @@ impl MiriEnv {
62
}
63
64
// Hard-code the target dir, since we rely on all binaries ending up in the same spot.
65
- sh.set_var("CARGO_TARGET_DIR", path!(miri_dir / "target"));
+ // Cargo provides multiple ways to adjust this and we need to overwrite all of them.
66
+ let target_dir = path!(miri_dir / "target");
67
+ sh.set_var("CARGO_TARGET_DIR", &target_dir);
68
+ sh.set_var("CARGO_BUILD_BUILD_DIR", &target_dir);
69
70
// We configure dev builds to not be unusably slow.
71
let devel_opt_level =
0 commit comments