Skip to content

Commit 61c4b11

Browse files
committed
Ensure rustc-echo-wrapper works with an overridden build.target-dir
1 parent 1fcbca8 commit 61c4b11

File tree

1 file changed

+1
-1
lines changed
  • crates/cargo-test-support/src

1 file changed

+1
-1
lines changed

crates/cargo-test-support/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ pub trait TestEnv: Sized {
12091209
.current_dir(&paths::root())
12101210
.env("HOME", paths::home())
12111211
.env("CARGO_HOME", paths::home().join(".cargo"))
1212-
.env("__CARGO_TEST_ROOT", paths::root())
1212+
.env("__CARGO_TEST_ROOT", paths::global_root())
12131213
// Force Cargo to think it's on the stable channel for all tests, this
12141214
// should hopefully not surprise us as we add cargo features over time and
12151215
// cargo rides the trains.

0 commit comments

Comments
 (0)