Replies: 2 comments
-
Have you tried to follow https://bazel.build/configure/windows#clang? For current Bazel versions, you need to follow the instructions for |
Beta Was this translation helpful? Give feedback.
-
You can find several projects using "clang-cl" for example - https://github.com/search?q=%22clang-cl%22+path%3A.bazelrc&ref=opensearch&type=code - not sure if this is exactly what you want - e.g. "clang-cl", which tries to resemble most of what MSVC would do - https://clang.llvm.org/docs/MSVCCompatibility.html - I've been using it for my projects, because MSVC (heh), can't handle 260+ char paths, and as it happens with bazel some paths are really long... Though |
Beta Was this translation helpful? Give feedback.
-
I tried various things - setting CXX/CC, adding --repo_env=CC=clang to .bazelrc, etc. and
bazel build //...
in a minimal project on Windows keeps trying to use msvc's cl.exe 😕Beta Was this translation helpful? Give feedback.
All reactions