Pass --target
when loading out dirs from check
This commit is contained in:
parent
8a950dfb40
commit
a69996933a
@ -297,6 +297,11 @@ pub(crate) fn load_extern_resources(
|
||||
) -> Result<ExternResources> {
|
||||
let mut cmd = Command::new(toolchain::cargo());
|
||||
cmd.args(&["check", "--message-format=json", "--manifest-path"]).arg(cargo_toml);
|
||||
|
||||
if let Some(target) = &cargo_features.target {
|
||||
cmd.args(&["--target", target]);
|
||||
}
|
||||
|
||||
if cargo_features.all_features {
|
||||
cmd.arg("--all-features");
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user