Skip to content

Commit

Permalink
fix(flag_check): never link to avoid false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
RubixDev committed Aug 1, 2023
1 parent b388631 commit f556904
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,11 +535,8 @@ impl Build {
is_arm,
);

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

cmd.arg(&src);

Expand Down

0 comments on commit f556904

Please sign in to comment.