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.76k stars 425 forks source link

Deprecate cc::Build::static_flag #1078

Open NobodyXu opened 1 month ago

NobodyXu commented 1 month ago

cc only compiles file and does not do any linking at all, so -static doesn't make sense

NobodyXu commented 4 weeks ago

It's the same motivation with #1077 , cc doesn't do linking by itself, users using cc for linking would need to convert to Tools to command and manually do that