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

Allow opt-out the -ccbin flag #1085

Closed QuarticCat closed 1 month ago

QuarticCat commented 1 month ago

Closes #1084.

I'm not 100% sure how to design the API. My initial thought was ccbin: Option<String>. But given that we cannot specify C/C++ compiler through functions, it would be weird that we could do so for NVCC. We can still use CXX env anyway.

Also, I think enabling ccbin by default is weird. But I want to maintain backward compatibility.