rust-lang / cc-rs

Rust library for build scripts to compile C/C++ code into a Rust library
https://docs.rs/cc
Apache License 2.0
1.81k stars 434 forks source link

Fix caching of supported compiler flag #1002

Closed NobodyXu closed 5 months ago

NobodyXu commented 6 months ago

The cache needs to include compiler, since user can always changes the compiler by Build::compiler or by setting/changing environment variables.

This commit also enables different is_flag_supported to be run in parallel.