Skip to content

Commit 9b569ae

Browse files
authored
fix(flag_check): never link to avoid false positives (#839)
1 parent aa514c9 commit 9b569ae

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -539,11 +539,8 @@ impl Build {
539539
is_arm,
540540
);
541541

542-
// We need to explicitly tell msvc not to link and create an exe
543-
// in the root directory of the crate
544-
if target.contains("msvc") && !self.cuda {
545-
cmd.arg("-c");
546-
}
542+
// Checking for compiler flags does not require linking
543+
cmd.arg("-c");
547544

548545
cmd.arg(&src);
549546

0 commit comments

Comments
 (0)