Pass flycheck extra args when running build scripts

This commit is contained in:
Laurențiu Nicola 2023-03-11 19:28:02 +02:00
parent 70e10deee8
commit cfc9d5cd3b
3 changed files with 4 additions and 0 deletions

View file

@ -67,6 +67,7 @@ impl WorkspaceBuildScripts {
let mut cmd = Command::new(toolchain::cargo());
cmd.args(["check", "--quiet", "--workspace", "--message-format=json"]);
cmd.args(&config.extra_args);
// --all-targets includes tests, benches and examples in addition to the
// default lib and bins. This is an independent concept from the --target