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 42dbd37 commit e0c74beCopy full SHA for e0c74be
crates/flycheck/src/lib.rs
@@ -360,10 +360,6 @@ impl FlycheckActor {
360
let mut cmd = Command::new(command);
361
cmd.envs(extra_env);
362
363
- if let Some(target_dir) = target_dir {
364
- cmd.env("CARGO_TARGET_DIR", target_dir);
365
- }
366
-
367
match invocation_location {
368
InvocationLocation::Workspace => {
369
match invocation_strategy {
@@ -381,6 +377,10 @@ impl FlycheckActor {
381
377
}
382
378
383
379
380
+ if let Some(target_dir) = target_dir {
+ cmd.arg("--target-dir").arg(target_dir);
+ }
+
384
(cmd, args)
385
386
};
0 commit comments