Skip to content

Commit a699969

Browse files
Pass --target when loading out dirs from check
1 parent 8a950df commit a699969

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/project_model/src/cargo_workspace.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@ pub(crate) fn load_extern_resources(
297297
) -> Result<ExternResources> {
298298
let mut cmd = Command::new(toolchain::cargo());
299299
cmd.args(&["check", "--message-format=json", "--manifest-path"]).arg(cargo_toml);
300+
301+
if let Some(target) = &cargo_features.target {
302+
cmd.args(&["--target", target]);
303+
}
304+
300305
if cargo_features.all_features {
301306
cmd.arg("--all-features");
302307
} else {

0 commit comments

Comments
 (0)