We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e38d305 commit 2781848Copy full SHA for 2781848
collector/src/execute.rs
@@ -323,8 +323,8 @@ impl<'a> CargoProcess<'a> {
323
cmd.arg("-Zunstable-options");
324
cmd.arg("-Ztimings");
325
}
326
- cmd.arg("--target-dir");
327
- cmd.arg(self.target_directory);
+ // --target-dir is not universally read, but this hopefully is.
+ cmd.env("CARGO_TARGET_DIR", self.target_directory);
328
cmd.arg("--");
329
// --wrap-rustc-with is not a valid rustc flag. But rustc-fake
330
// recognizes it, strips it (and its argument) out, and uses it as an
0 commit comments