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.77k stars 427 forks source link

Parallelise flag support check in try_get_compiler #1052

Open NobodyXu opened 2 months ago

NobodyXu commented 2 months ago

A while ago, I was thinking of parallelising this to speed it up.

If you'd like to do this, I recommend creating a new fn is_flags_supported.

You can take a look at compile_objects, if you are interested in doing so

_Originally posted by @NobodyXu in https://github.com/rust-lang/cc-rs/pull/1050#discussion_r1589827852_