cc-rs
cc-rs copied to clipboard
feature request: Allow setting nvcc executable via env var.
The env vars CC and CXX can be set to point to C and c++ compilers respectively, I'd like to be able to set the nvcc executable in a similar way.
CMake uses CUDACXX, which seems reasonable enough and would work for my usecase. I currently just modify PATH.
Somthing analogous to CFLAGS and CXXFLAGS for Cuda would also be nice for completions sake, but I have not found a need for it.
I could probably implement and document this myself if this feature is in scope for the project.
I will accept a PR to add this, the env is documented in src/lib.rs