toolchains_llvm icon indicating copy to clipboard operation
toolchains_llvm copied to clipboard

feat: windows toolchain for running clang tools

Open peakschris opened this issue 1 year ago • 3 comments

This is a start on windows toolchain support (https://github.com/bazel-contrib/toolchains_llvm/issues/4). Enough is in place for the distribution to be downloaded, extracted, and tools made available through symlinks and a build file.

working examples: bazel run @llvm_toolchain_llvm//:bin/clang-tidy.exe bazel run @llvm_toolchain_llvm//:bin/clang-format.exe

llvm 18+ is required.

Comments, suggestions, help all very welcome

peakschris avatar Jun 17 '24 03:06 peakschris

If you haven't come across it already, #154 may be of interest to you; it uses cc_toolchain_config from @bazel_tools//tools/cpp:windows_cc_toolchain_config.bzl which we'll probably also want to eventually do.

This is a great reference, thank you! I don't understand cross compilation, but could give a go at integrating the windows_cc_toolchain_config to a level where it works on a windows machine. I'd like to do this as a followup PR if that's OK. Maybe someone else could take on the cross compilation aspect, I can see that would be hugely valuable for CI runners.

peakschris avatar Jun 17 '24 11:06 peakschris

Hi, is the PR dead in the end?

bomkvilt avatar Jan 12 '25 11:01 bomkvilt

Any ETA on that work? This looks quite promising! Also, I suppose adding Windows ARM support would be cool as it gains a lot of traction.

ArchangelX360 avatar Nov 04 '25 12:11 ArchangelX360