Repository navigation
Minimum bazel version: 7.0.0
See the changelog
for changes in this release. In 1.13.0, first / latest prerelease selection
requires llvm_version_allow_prereleases = True, or
linker_version_allow_prereleases = True for catalogued linkers. Exact pins are
unchanged. Read the 1.13.0 migration guide
for configuration changes, range choices, and SemVer RC ordering.
If you're using bzlmod, add the following to MODULE.bazel:
bazel_dep(name = "toolchains_llvm", version = "1.13.0")
# Configure and register the toolchain.
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
llvm.toolchain(
llvm_version = "23.1.5",
)
use_repo(llvm, "llvm_toolchain")
# use_repo(llvm, "llvm_toolchain_llvm") # if you depend on specific tools in scripts
register_toolchains("@llvm_toolchain//:all")These examples use the linker bundled with LLVM 23.1.5; its macOS linker does
not require the LLVM 23.1.0–23.1.2 SDK/TAPI workaround. LLVM 23.1.5 has no macOS
x86_64 archive; Intel Mac users must select another available LLVM version
through llvm_version or llvm_versions.
To directly use a commit from GitHub, add this block and replace commit with the commit you want.
git_override(
module_name = "toolchains_llvm",
commit = "a6c3d438d3783d35a42306e0d0616808dba9322d",
remote = "https://github.com/bazel-contrib/toolchains_llvm",
)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 = "6834423f49c0b0709942858f4c6323a25e8da254a8265fbe874d2c3f96bf19a0",
strip_prefix = "toolchains_llvm-v1.13.0",
canonical_id = "v1.13.0",
url = "https://github.com/bazel-contrib/toolchains_llvm/releases/download/v1.13.0/toolchains_llvm-v1.13.0.tar.gz",
)
load("@toolchains_llvm//toolchain:deps.bzl", "bazel_toolchain_dependencies")
bazel_toolchain_dependencies()
load("@bazel_features//:deps.bzl", "bazel_features_deps")
bazel_features_deps()
load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")
# If you see an error:
# ERROR: Cycle caused by autoloads, failed to load .bzl file '@@cc_compatibility_proxy//:symbols.bzl'.
# then you might need to add the following to your .bazelrc:
# common --repositories_without_autoloads=cc_compatibility_proxy
compatibility_proxy_repo()
load("@toolchains_llvm//toolchain:rules.bzl", "llvm_toolchain")
llvm_toolchain(
name = "llvm_toolchain",
llvm_version = "23.1.5",
)
load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")
llvm_register_toolchains()What's Changed
- Cleanup of expression-based version selectors with explicit prerelease control by @helly25 in #911
- Update dependency boringssl to v0.20261020.0 by @renovate[bot] in #916
- Update dependency bazel_features to v1.53.0 by @renovate[bot] in #917
- Update dependency rules_cc to v0.2.27 by @renovate[bot] in #919
- Update dependency rules_python to v2.4.3 by @renovate[bot] in #918
- Update dependency rules_cc to v0.2.27 by @renovate[bot] in #920
- Update dependency rules_python to v2.4.5 by @renovate[bot] in #922
- Update dependency rules_go to v0.65.0 by @renovate[bot] in #923
- Update dependency io_bazel_rules_go to v0.65.0 by @renovate[bot] in #921
- Update dependency rules_foreign_cc to v0.17.0 by @renovate[bot] in #924
- Update dependency rules_rust to v0.75.0 by @renovate[bot] in #925
- Update bazel-contrib/publish-to-bcr action to v1.6.0 by @renovate[bot] in #926
- Update dependency apple_support to v2.11.0 by @renovate[bot] in #927
- Update dependency bazel_features to v1.54.1 by @renovate[bot] in #928
- Update dependency rules_python to v2.4.6 by @renovate[bot] in #929
- Update dependency aspect_bazel_lib to v3.8.0 by @renovate[bot] in #931
- Add LLVM 23.1.5 distributions by @helly25 in #932
- Prepare 1.13.0 release documentation and migration notes by @helly25 in #930
Full Changelog: v1.12.0...v1.13.0