We are currently working on making the Clang/LLVM Bazel overlay available via the bzlmod system. We noticed that parts of our code may be desirable to have in the Clang/LLVM overlay in this repo.
What works
- We have a working
MODULE.bazel file here (ignore the rules_ll specific stuff).
- An
extensions.bzl file to apply the overlay etc. is here, mostly copied from configure.bzl.
What doesn't work
I would expect that we would need to fix the following issues before something like this would be acceptable for upstreaming:
Conclusion
Please let me know whether bzlmod support is something that would have a place in the bazel overlay in this repository. If it is, please also let me know which issues, apart from those already mentioned we would have to address.
We are currently working on making the Clang/LLVM Bazel overlay available via the
bzlmodsystem. We noticed that parts of our code may be desirable to have in the Clang/LLVM overlay in this repo.What works
MODULE.bazelfile here (ignore therules_llspecific stuff).extensions.bzlfile to apply the overlay etc. is here, mostly copied fromconfigure.bzl.What doesn't work
I would expect that we would need to fix the following issues before something like this would be acceptable for upstreaming:
zlibetc. This should be simple to fix by exposing related functionality as extensions.http_archivebecause of this bug: Label resolution fails by repo mapping when used by a repo rule inside a module extension bazelbuild/bazel#14659. Workarounds are possible, but not pretty.Conclusion
Please let me know whether
bzlmodsupport is something that would have a place in the bazel overlay in this repository. If it is, please also let me know which issues, apart from those already mentioned we would have to address.