Skip to content

Commit 2781848

Browse files
cargo llvm-lines doesn't support --target-dir
1 parent e38d305 commit 2781848

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

collector/src/execute.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ impl<'a> CargoProcess<'a> {
323323
cmd.arg("-Zunstable-options");
324324
cmd.arg("-Ztimings");
325325
}
326-
cmd.arg("--target-dir");
327-
cmd.arg(self.target_directory);
326+
// --target-dir is not universally read, but this hopefully is.
327+
cmd.env("CARGO_TARGET_DIR", self.target_directory);
328328
cmd.arg("--");
329329
// --wrap-rustc-with is not a valid rustc flag. But rustc-fake
330330
// recognizes it, strips it (and its argument) out, and uses it as an

0 commit comments

Comments
 (0)