Closed axbycc-mark closed 6 months ago
Thanks for reporting, @axbycc-mark. Sorry about all these windows issues.
Taking a crack at fixing rn
Just pushed--could I ask you to give that a whirl for me on windows? We should now inherit the action environment when invoking in that case (and some others), though Bazel has a variety of issues about not surfacing all environment variables--some chance we'll still run into something like that here.
Success! Thanks so much!
Great! Thanks so much for reporting and testing and generally helping make things better for those who come after you!
Reproduction https://github.com/axbycc-mark/hedron-compile-commands-repro/tree/cuda_rules
OS: Windows 10 Bazel Version: 7.0.2 Compiler: Visual Studio 2019 NVCC: 11.7, V11.7.64
I'm using rules_cuda (https://github.com/bazel-contrib/rules_cuda) which sets the path to cl.exe when invoking nvcc. When running @@hedron_compile_commands//:refresh_all, this path is not set, leading to the following error:
nvcc fatal : Cannot find compiler 'cl.exe' in PATH
.Full error output appears below.