cc-rs icon indicating copy to clipboard operation
cc-rs copied to clipboard

feature request: Allow setting nvcc executable via env var.

Open MarcusDunn opened this issue 1 year ago • 1 comments

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.

MarcusDunn avatar Mar 06 '24 18:03 MarcusDunn

I will accept a PR to add this, the env is documented in src/lib.rs

NobodyXu avatar Mar 06 '24 23:03 NobodyXu