v1.1.0
Minimum bazel version: 7.0.0
If you're using bzlmod
, add the following to MODULE.bazel
:
bazel_dep(name = "toolchains_llvm", version = "v1.1.0")
# To directly use a commit from GitHub, replace commit with the commit you want.
# Otherwise, omit this block.
git_override(
module_name = "toolchains_llvm",
commit = "8bf80b5ca3fa79ec278f3c172a9b78d3f9748d3b",
remote = "https://github.com/bazel-contrib/toolchains_llvm",
)
# Configure and register the toolchain.
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
llvm.toolchain(
llvm_version = "16.0.0",
)
use_repo(llvm, "llvm_toolchain")
# use_repo(llvm, "llvm_toolchain_llvm") # if you depend on specific tools in scripts
register_toolchains("@llvm_toolchain//:all")
If not using bzlmod
, include this section in your WORKSPACE
:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "toolchains_llvm",
sha256 = "f60727ccc31b578f9b9689064a21c874165a9652d4b0f43817c5eda479f1e3df",
strip_prefix = "toolchains_llvm-v1.1.0",
canonical_id = "v1.1.0",
url = "https://github.com/bazel-contrib/toolchains_llvm/releases/download/v1.1.0/toolchains_llvm-v1.1.0.tar.gz",
)
load("@toolchains_llvm//toolchain:deps.bzl", "bazel_toolchain_dependencies")
bazel_toolchain_dependencies()
load("@toolchains_llvm//toolchain:rules.bzl", "llvm_toolchain")
llvm_toolchain(
name = "llvm_toolchain",
llvm_version = "16.0.0",
)
load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")
llvm_register_toolchains()
What's Changed
- Update compability_level in MODULE.bazel by @siddharthab in #295
- Revert "Update compability_level in MODULE.bazel" by @siddharthab in #296
- Also test docker exec test without bzlmod by @siddharthab in #297
- Revert accidental deletion by @siddharthab in #299
- Add LLVM 18 links by @adzenith in #302
- Add llvm-profdata for coverage data merging by @fernride-jissing in #307
- Update buildifier by @keith in #311
- Use paths.join for sysroot_prefix by @keith in #310
- Fix double slashes for sysroot = / by @keith in #312
- Fix CI by switching back to x86 Mac runners by @fmeum in #320
- Add two more aliased tools by @jez in #321
- Add 18.1.3, 18.1.4, 18.1.5 downloads by @lalten in #325
- Force Clang modules with LLVM >= 14 by @fmeum in #337
- feat: add 18.1.6 and 18.1.7 by @peakschris in #341
- Fix support for --incompatible_disallow_empty_glob by @keith in #331
(renovate PRs omitted)
New Contributors
- @fernride-jissing made their first contribution in #307
- @peakschris made their first contribution in #341
Full Changelog: 1.0.0...v1.1.0