[PATCH] D137008: [Bazel] Add bzlmod support
Aaron Siddhartha Mondal via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 28 22:55:36 PDT 2022
aaronmondal created this revision.
aaronmondal added reviewers: GMNGeoffrey, csigg.
aaronmondal added a project: bazel build.
Herald added subscribers: pengfei, s.egerton, simoncook, fedor.sergeev, dschuff.
Herald added a project: All.
aaronmondal requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, aheejin.
Herald added a project: LLVM.
Introduces a build configuration for bzlmod.
The version introduced in this module is importable in `MODULE.bazel` files via
python
bazel_dep(name="llvm-project-overlay", version="16.0.0-bcr.0")
llvm_project_overlay = use_extension(
"@llvm-project-overlay//utils/bazel:extensions.bzl",
"llvm_project_overlay",
)
use_repo(llvm_project_overlay, "llvm-project")
Optionally, users may specify custom commits, targets and patches by overriding `llvm_project_overlay.configure`:
python
llvm_project_overlay.configure(
targets = ["X86"],
commit = "<some_commit>",
sha256 = "<sha_of_commit_archive>",
patches = ["<some_patch>"],
)
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D137008
Files:
utils/bazel/MODULE.bazel
utils/bazel/bzlmod_compatibility_patch.patch
utils/bazel/examples/bzlmod/.bazelrc
utils/bazel/examples/bzlmod/.bazelversion
utils/bazel/examples/bzlmod/MODULE.bazel
utils/bazel/examples/bzlmod/WORKSPACE.bazel
utils/bazel/extensions.bzl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137008.471718.patch
Type: text/x-patch
Size: 8664 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221029/0fb898a5/attachment.bin>
More information about the llvm-commits
mailing list