-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
bazel"Peripheral" support tier build system: utils/bazel"Peripheral" support tier build system: utils/bazel
Description
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.bazelfile here (ignore therules_llspecific stuff). - An
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:
- Users will need to be able to specify whether they want
zlibetc. This should be simple to fix by exposing related functionality as extensions. - Registries do not work with labels in
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 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.
Metadata
Metadata
Assignees
Labels
bazel"Peripheral" support tier build system: utils/bazel"Peripheral" support tier build system: utils/bazel