Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Mads Marquart <[email protected]>
  • Loading branch information
NobodyXu and madsmtm authored Feb 28, 2025
1 parent a3fc3ae commit 9160871
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1351,6 +1351,10 @@ impl Build {
},
);

// Checking for compiler flags does not require linking (and we _must_
// avoid making it do so, since it breaks cross-compilation when the C
// compiler isn't configured to be able to link).
// https://github.com/rust-lang/cc-rs/issues/1423
cmd.arg("-c");

if compiler.supports_path_delimiter() {
Expand Down

0 comments on commit 9160871

Please sign in to comment.