Skip to content

Commit f556904

Browse files
committed
fix(flag_check): never link to avoid false positives
1 parent b388631 commit f556904

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
@@ -535,11 +535,8 @@ impl Build {
535535
is_arm,
536536
);
537537

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

544541
cmd.arg(&src);
545542

0 commit comments

Comments
 (0)