Skip to content

Commit 8c8b53c

Browse files
committed
Invoke cargo rustc with the check profile to avoid codegen
1 parent 7a1e00a commit 8c8b53c

File tree

1 file changed

+1
-2
lines changed
  • collector/src/compile/execute

1 file changed

+1
-2
lines changed

collector/src/compile/execute/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,12 +330,11 @@ impl<'a> CargoProcess<'a> {
330330
let mut cmd = self.base_command(self.cwd, cargo_subcommand);
331331
cmd.arg("-p").arg(self.get_pkgid(self.cwd)?);
332332
match self.profile {
333-
Profile::Check => {
333+
Profile::Check | Profile::Clippy => {
334334
cmd.arg("--profile").arg("check");
335335
}
336336
Profile::Debug => {}
337337
Profile::Doc => {}
338-
Profile::Clippy => {}
339338
Profile::Opt => {
340339
cmd.arg("--release");
341340
}

0 commit comments

Comments
 (0)