Skip to content

Releases

v1.13.0

Choose a tag to compare

@github-actions github-actions released this 04 Nov 02:22
a6c3d43

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

v1.12.0

Choose a tag to compare

@github-actions github-actions released this 20 Oct 22:24
6ceed3a

Minimum bazel version: 7.0.0

If you're using bzlmod, add the following to MODULE.bazel:

bazel_dep(name = "toolchains_llvm", version = "1.12.0")

# Configure and register the toolchain.
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
llvm.toolchain(
    llvm_version = "23.1.2",
    linker = {
        "darwin-aarch64": "auto",
        "darwin-x86_64": "auto",
    },
)

use_repo(llvm, "llvm_toolchain")
# use_repo(llvm, "llvm_toolchain_llvm") # if you depend on specific tools in scripts

register_toolchains("@llvm_toolchain//:all")

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 = "6ceed3a1e8d4718a00a34108c5aa543cc56aabbd",
    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 = "7a72efd08d11441f27075b3f26b04f9506e4b3c09055861c4f5932cae6770c45",
    strip_prefix = "toolchains_llvm-v1.12.0",
    canonical_id = "v1.12.0",
    url = "https://github.com/bazel-contrib/toolchains_llvm/releases/download/v1.12.0/toolchains_llvm-v1.12.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 .bzelrc:
#   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.2",
    linker = {
        "darwin-aarch64": "auto",
        "darwin-x86_64": "auto",
    },
)

load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")

llvm_register_toolchains()

What's Changed

New Contributors

Full Changelog: v1.11.3...v1.12.0

toolchains_llvm 1.11.3 — recognise LLVM 23.1.3's macOS linker fix

Choose a tag to compare

@github-actions github-actions released this 12 Oct 21:00
adf59ed
  • Stop warning about the macOS SDK/TAPI incompatibility when using LLVM 23.1.3 or later with its bundled linker.
  • Keep the warning for affected LLVM 23 releases before 23.1.3, and update its guidance and the README to identify the fixed version.
  • Add regression coverage for the LLVM 23.1.3 warning boundary.
  • Update WORKSPACE dependencies to apple_support 2.10.1 and bazel_features 1.52.0, and refresh test dependencies to rules_python 2.4.2 and rules_go 0.64.2.

macOS linker selection

LLVM 23.1.3 includes the bundled linker's arm64e.x1 support for current SDK TAPI stubs. The linker = "auto" workaround is no longer required for that incompatibility when using LLVM 23.1.3 or later. To use the bundled linker, omit the Darwin auto override from your configuration.

This release corrects the warning and documentation; it does not change explicit linker selections. LLVM 23.1.0–23.1.2 still need the native-linker workaround with affected SDKs. See PR #903 for details and validation.

Installation

Minimum bazel version: 7.0.0

If you're using bzlmod, add the following to MODULE.bazel:

bazel_dep(name = "toolchains_llvm", version = "1.11.3")

# Configure and register the toolchain.
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
llvm.toolchain(
    llvm_version = "23.1.3",
)

use_repo(llvm, "llvm_toolchain")
# use_repo(llvm, "llvm_toolchain_llvm") # if you depend on specific tools in scripts

register_toolchains("@llvm_toolchain//:all")

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 = "adf59ed65ed9e7a38f0a3b6f6e3b83f101406f46",
    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 = "16a542173a41d29c5e172d7ef907261879bc37e7ba7d12ffe5574303ba36665d",
    strip_prefix = "toolchains_llvm-v1.11.3",
    canonical_id = "v1.11.3",
    url = "https://github.com/bazel-contrib/toolchains_llvm/releases/download/v1.11.3/toolchains_llvm-v1.11.3.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 .bzelrc:
#   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.3",
)

load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")

llvm_register_toolchains()

What's Changed

  • Update dependency io_bazel_rules_go to v0.64.2 by @renovate[bot] in #895
  • Update dependency rules_go to v0.64.2 by @renovate[bot] in #896
  • Update dependency rules_python to v2.4.2 by @renovate[bot] in #898
  • Update dependency apple_support to v2.10.1 by @renovate[bot] in #897
  • Update dependency rules_python to v2.4.2 by @renovate[bot] in #899
  • Update dependency bazel_features to v1.52.0 by @renovate[bot] in #900
  • Skip the LLVM 23 macOS linker warning for 23.1.3 and later by @dekkagaijin in #903

New Contributors

Full Changelog: v1.11.2...v1.11.3

toolchains_llvm 1.11.2 — LLVM 23.1.3, mold 3.0.0, and fixes

Choose a tag to compare

@github-actions github-actions released this 07 Oct 22:25
d8d141e
  • Add checksum-pinned LLVM 23.1.3 archives and mold 3.0.0 binaries.
  • Preserve previously catalogued linker versions and execution platforms during updates, including mold 2.41.0. Removals now require an explicit change.
  • Fix the empty-key conly_flags fallback so it applies to every target, without affecting C++ compilation.
  • Update rules_cc to 0.2.26 in WORKSPACE/test configurations and rules_python to 2.4.1 in test configurations.

Selection and compatibility

Unconstrained mold linker_version = "latest" now selects 3.0.0. Exact pins to older catalogued versions remain available. The BCR version and three newest stable mold releases determine which entries the updater refreshes, not which existing entries it retains.

LLVM 23.1.3 archive metadata includes both xz and zstd. Unsupported zstd archives remain excluded from selection; xz is selected instead. The existing macOS LLVM 23 SDK/TAPI workaround still applies: use Apple's linker through linker = "auto" where needed.

See the 1.11.2 changelog for details.

Installation

Minimum bazel version: 7.0.0

If you're using bzlmod, add the following to MODULE.bazel:

bazel_dep(name = "toolchains_llvm", version = "1.11.2")

# Configure and register the toolchain.
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
llvm.toolchain(
    llvm_version = "23.1.2",
    linker = {
        "darwin-aarch64": "auto",
        "darwin-x86_64": "auto",
    },
)

use_repo(llvm, "llvm_toolchain")
# use_repo(llvm, "llvm_toolchain_llvm") # if you depend on specific tools in scripts

register_toolchains("@llvm_toolchain//:all")

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 = "d8d141e17461e31886fc90e74b1915872e0aaf58",
    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 = "4c237263499b69f3b98a9837ae195bd19422a6b94cee4310f40b623ee3290958",
    strip_prefix = "toolchains_llvm-v1.11.2",
    canonical_id = "v1.11.2",
    url = "https://github.com/bazel-contrib/toolchains_llvm/releases/download/v1.11.2/toolchains_llvm-v1.11.2.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 .bzelrc:
#   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.2",
    linker = {
        "darwin-aarch64": "auto",
        "darwin-x86_64": "auto",
    },
)

load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")

llvm_register_toolchains()

What's Changed

  • Update dependency rules_python to v2.4.0 by @renovate[bot] in #887
  • Apply an empty-key conly_flags to every target by @AustinSchuh in #886
  • Update dependency rules_python to v2.4.0 by @renovate[bot] in #888
  • Update dependency rules_cc to v0.2.26 by @renovate[bot] in #889
  • Update dependency rules_python to v2.4.1 by @renovate[bot] in #890
  • Update LLVM distributions to 23.1.3 and mold to 3.0.0 by @helly25 in #891
  • Update dependency rules_python to v2.4.1 by @renovate[bot] in #893
  • Document changes for release 1.11.2 by @helly25 in #894

Full Changelog: v1.11.1...v1.11.2

toolchains_llvm 1.11.1 — fix LLVM 23 ThinLTO with Apple's linker

Choose a tag to compare

@github-actions github-actions released this 04 Oct 18:41
baf760a
  • Fix macOS ThinLTO builds using LLVM 23.x and Apple's linker (linker = "auto").
  • Support the native-linker workaround for LLVM 23's newer-SDK/TAPI incompatibility.
  • Load the LLVM distribution's matching LTO library instead of Apple's older one.

Why this patch matters

LLVM 23's bundled LLD cannot handle the newer macOS SDK/TAPI combination,
so affected builds use Apple's linker through linker = "auto". With ThinLTO,
older Apple linkers ignore Clang's relative path to libLTO.dylib and load their
own incompatible library, failing with Invalid summary version 14.

Version 1.11.1 supplies the matching LLVM library's absolute path at execution
time. Explicit user-provided LTO libraries are preserved; compile-only actions,
LLD, and non-Darwin targets are unchanged. This fixes the Apple-linker path,
not LLVM 23's bundled LLD/TAPI limitation.

Verified compatibility

Tested with LLVM 23.1.2 on arm64, including direct and response-file links:

  • CLT 16.4 and 26.0–26.3: ThinLTO fails without the fix and passes with it.
  • CLT 26.4–26.6 and 27: continue to pass.
  • CLT 15.3: its Apple linker remains incompatible with the tested LLVM archive.
    Bundled LLD 23.1.2 works with its older SDK 14.4.

The issue is not limited to a macOS 27 host: it depends on the LLVM version,
SDK, and selected Apple linker. See PR #885
for the complete tool-version matrix and regression coverage.

Upgrade

bazel_dep(name = "toolchains_llvm", version = "1.11.1")

Keep the macOS auto linker selection for affected LLVM 23 builds. No new
configuration is needed to enable this fix.

Installation

Minimum bazel version: 7.0.0

If you're using bzlmod, add the following to MODULE.bazel:

bazel_dep(name = "toolchains_llvm", version = "1.11.1")

# Configure and register the toolchain.
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
llvm.toolchain(
    llvm_version = "23.1.2",
    linker = {
        "darwin-aarch64": "auto",
        "darwin-x86_64": "auto",
    },
)

use_repo(llvm, "llvm_toolchain")
# use_repo(llvm, "llvm_toolchain_llvm") # if you depend on specific tools in scripts

register_toolchains("@llvm_toolchain//:all")

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 = "baf760aa795c6f575af29549a796ff70677d5787",
    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 = "a1fb13dedf0c5311c3ecdb8081d65d67269a7a762ca340c33d520c229a2cf949",
    strip_prefix = "toolchains_llvm-v1.11.1",
    canonical_id = "v1.11.1",
    url = "https://github.com/bazel-contrib/toolchains_llvm/releases/download/v1.11.1/toolchains_llvm-v1.11.1.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 .bzelrc:
#   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.2",
    linker = {
        "darwin-aarch64": "auto",
        "darwin-x86_64": "auto",
    },
)

load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")

llvm_register_toolchains()

What's Changed

  • Update bazel-contrib/publish-to-bcr action to v1.5.1 by @renovate[bot] in #884
  • Fix macOS ThinLTO with older Apple linkers by @helly25 in #885

Full Changelog: v1.11.0...v1.11.1

v1.11.0

Choose a tag to compare

@github-actions github-actions released this 02 Oct 14:51
4d11540

toolchains_llvm 1.11.0

Headline: configurable linkers, feature-based toolchains, and macOS ThinLTO

This release extends linker selection with independently versioned, checksum-verified downloads and lets one toolchain configuration adapt to different build features.

Highlights

  • Downloadable linkers: select linkers by name and version, including constrained latest selections. Mold is the first built-in catalogue entry (depending on the mold Bazel module is entirely optional). Use custom JSONC catalogues to support other linkers.
  • Feature-based configuration: override the compiler distribution, linker, sysroot, flags, and other settings using signed feature conditions such as ["thin_lto", "-msan"]. Unmatched configurations retain the default.
  • macOS ThinLTO: enable linker-managed ThinLTO through --features=thin_lto, with independent settings for build tools through --host_features.
  • MemorySanitizer correctness: instrument C alongside C++, and fail explicitly on unsupported targets instead of silently producing uninstrumented builds.
  • Safer archive selection: retain all available archive formats while automatically choosing compatible xz/gzip packages. The updater now maintains both LLVM and mold catalogues.

Compatibility notes

  • Existing default, native, and explicit-path linker selections remain available.
  • LLVM 23 on macOS still needs the native auto linker override for the known SDK/TAPI issue.
  • Downloaded mold alone does not provide LLVM's LTO plugin. Use a feature override to select bundled LLD for Linux ThinLTO. Automatic plugin provisioning and full mold integration with Bazel's ThinLTO actions are follow-up work.
  • MSan remains Linux-only; requesting it on macOS now fails intentionally.
  • LLVM's large-window zstd archives remain excluded from automatic selection.

See the README for configuration and requirements, and the full changelog for release details.

Installation

Minimum bazel version: 7.0.0

If you're using bzlmod, add the following to MODULE.bazel:

bazel_dep(name = "toolchains_llvm", version = "1.11.0")

# Configure and register the toolchain.
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
llvm.toolchain(
    llvm_version = "23.1.2",
    linker = {
        "darwin-aarch64": "auto",
        "darwin-x86_64": "auto",
    },
)

use_repo(llvm, "llvm_toolchain")
# use_repo(llvm, "llvm_toolchain_llvm") # if you depend on specific tools in scripts

register_toolchains("@llvm_toolchain//:all")

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 = "4d1154070f707748ed0987e1eef59ac19482d36a",
    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 = "e1030d1b56f3d15b8a35be2a6e66b9339df5e626eeb7bbba3958c8c71e54c81b",
    strip_prefix = "toolchains_llvm-v1.11.0",
    canonical_id = "v1.11.0",
    url = "https://github.com/bazel-contrib/toolchains_llvm/releases/download/v1.11.0/toolchains_llvm-v1.11.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 .bzelrc:
#   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.2",
    linker = {
        "darwin-aarch64": "auto",
        "darwin-x86_64": "auto",
    },
)

load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")

llvm_register_toolchains()

What's Changed

  • Add optional mold linker support by @helly25 in #861
  • Test Bazel 8 and 9 in BCR presubmit by @helly25 in #868
  • Generalize linker distribution controls by @helly25 in #869
  • Prefer extractable LLVM archives by @helly25 in #870
  • Fix platform-specific linker resolution by @helly25 in #872
  • Upstream Apple linker and MSan fixes by @helly25 in #874
  • Update dependency boringssl to v0.20260929.0 by @renovate[bot] in #873
  • Fail loudly when MSan is unsupported by @helly25 in #875
  • Add feature-matrix toolchain configuration by @helly25 in #876
  • Enable linker-managed ThinLTO on macOS by @helly25 in #877
  • Preserve LLVM archive alternatives and add feature changelog by @helly25 in #878
  • Update dependency rules_go to v0.64.0 by @renovate[bot] in #880
  • Update dependency io_bazel_rules_go to v0.64.0 by @renovate[bot] in #879
  • Update dependency io_bazel_rules_go to v0.64.1 by @renovate[bot] in #881
  • Update dependency rules_go to v0.64.1 by @renovate[bot] in #882
  • Update LLVM version to 23.1.2 in workflow by @helly25 in #883

Full Changelog: v1.10.0...v1.11.0

v1.10.0

Choose a tag to compare

@github-actions github-actions released this 24 Sep 20:06
6406a13

Minimum bazel version: 7.0.0

If you're using bzlmod, add the following to MODULE.bazel:

bazel_dep(name = "toolchains_llvm", version = "1.10.0")

# 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")

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 = "6406a1319fcf27d0ea4a785b54a2ea53c4c23036",
  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 = "f79cce4047c5b2dc2ce83aa10207201a64a6db8aba406b986b32eac791562ea7",
    strip_prefix = "toolchains_llvm-v1.10.0",
    canonical_id = "v1.10.0",
    url = "https://github.com/bazel-contrib/toolchains_llvm/releases/download/v1.10.0/toolchains_llvm-v1.10.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 .bzelrc:
#   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 = "16.0.0",
)

load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")

llvm_register_toolchains()

What's Changed

  • Update dependency com_google_protobuf to v36.2 by @renovate[bot] in #859
  • Update dependency apple_support to v2.8.4 by @renovate[bot] in #858
  • Update dependency rules_python to v2.3.4 by @renovate[bot] in #862
  • Update LLVM distributions to 23.1.2 by @helly25 in #863
  • Update dependency rules_python to v2.3.4 by @renovate[bot] in #864
  • Update dependency apple_support to v2.9.0 by @renovate[bot] in #865
  • Add configurable linker selection by @helly25 in #860
  • Use an empty selection for the LLVM-distribution linker by @helly25 in #866
  • Update dependency apple_support to v2.9.1 by @renovate[bot] in #867

Full Changelog: v1.9.1...v1.10.0

v1.9.1

Choose a tag to compare

@github-actions github-actions released this 16 Sep 12:32
5f348a5

Minimum bazel version: 7.0.0

If you're using bzlmod, add the following to MODULE.bazel:

bazel_dep(name = "toolchains_llvm", version = "1.9.1")

# 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")

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 = "5f348a5d01afa44bae4a7b32d2823edea407a29e",
  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 = "40999e5a7db6262684571479e8dafb9c0adefa0efbe66db22b137872178cd473",
    strip_prefix = "toolchains_llvm-v1.9.1",
    canonical_id = "v1.9.1",
    url = "https://github.com/bazel-contrib/toolchains_llvm/releases/download/v1.9.1/toolchains_llvm-v1.9.1.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 .bzelrc:
#   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 = "16.0.0",
)

load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")

llvm_register_toolchains()

What's Changed

  • Replace Ubuntu 20.04 in BCR presubmit by @helly25 in #842
  • Pass DEVELOPER_DIR env var to macOS SDK detection for better cache invalidation by @mmirgttam in #839
  • chore(deps): update dependency com_google_protobuf to v36.1 by @renovate[bot] in #844
  • Add C++20 modules support by @helly25 in #843
  • Fix Ubuntu libtinfo5 CI download by @helly25 in #848
  • Update dependency aspect_bazel_lib to v3.7.2 by @renovate[bot] in #846
  • Update dependency bazel_features to v1.51.0 by @renovate[bot] in #847
  • Add late LLVM 23.1.0 distributions by @helly25 in #849
  • Update dependency rules_python to v2.3.3 by @renovate[bot] in #850
  • Fix: make standard library headers includable from modules by @rdong8 in #851
  • Update dependency rules_foreign_cc to v0.16.0 by @renovate[bot] in #853
  • Update dependency rules_cc to v0.2.25 by @renovate[bot] in #852
  • Update dependency apple_support to v2.8.3 by @renovate[bot] in #855
  • Update dependency tar.bzl to v0.10.9 by @renovate[bot] in #854
  • Add LLVM 23.1.1 distributions by @helly25 in #856
  • Fix release workflow permissions by @helly25 in #857

New Contributors

Full Changelog: v1.9.0...v1.9.1

v1.9.0

Choose a tag to compare

@helly25 helly25 released this 29 Aug 21:10
5370e47

Minimum bazel version: 7.0.0

If you're using bzlmod, add the following to MODULE.bazel:

bazel_dep(name = "toolchains_llvm", version = "1.9.0")

# 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")

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 = "5370e47ae9d668a3a13a2da8818a2b72c907f8e1",
  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 = "779b3280571647034931c7f9ce8ef3836bfc55d00d23e7dad5370151e1f7149e",
    strip_prefix = "toolchains_llvm-v1.9.0",
    canonical_id = "v1.9.0",
    url = "https://github.com/bazel-contrib/toolchains_llvm/releases/download/v1.9.0/toolchains_llvm-v1.9.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 .bzelrc:
#   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 = "16.0.0",
)

load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")

llvm_register_toolchains()

What's Changed

  • ci: publish to BCR via reusable workflow (replace retired app) by @helly25 in #773
  • chore(deps): update dependency rules_python to v2.0.3 by @renovate[bot] in #775
  • chore(deps): update dependency bazel_features to v1.49.0 by @renovate[bot] in #778
  • chore(deps): update actions/checkout action to v7 by @renovate[bot] in #779
  • Add LLVM 22.1.8 by @helly25 in #780
  • chore(deps): update dependency bazel_features to v1.50.0 by @renovate[bot] in #783
  • chore(deps): update dependency rules_cc to v0.2.20 by @renovate[bot] in #784
  • chore(deps): update dependency rules_cc to v0.2.20 by @renovate[bot] in #785
  • chore(deps): update dependency helly25_bzl to v0.5.0 by @renovate[bot] in #786
  • chore(deps): update dependency aspect_bazel_lib to v3.4.0 by @renovate[bot] in #789
  • chore(deps): update dependency rules_python to v2.1.0 by @renovate[bot] in #788
  • Add install-name-tool to llvm repo by @alopezz in #790
  • fix(toolchain): drop redundant -stdlib=libc++ that clang reports unused by @helly25 in #791
  • chore(deps): update dependency tar.bzl to v0.10.6 by @renovate[bot] in #792
  • chore(deps): update dependency rules_cc to v0.2.21 by @renovate[bot] in #793
  • chore(deps): update dependency rules_python to v2.2.0 by @renovate[bot] in #794
  • chore(deps): update dependency bazel_features to v1.51.0 by @renovate[bot] in #796
  • chore(deps): update bazel-contrib/publish-to-bcr action to v1.4.2 by @renovate[bot] in #797
  • ci: update libtinfo5 URL by @rrbutani in #803
  • Set canonical_id on sysroot download by @eloisekp in #799
  • chore(deps): update dependency rules_cc to v0.2.22 by @renovate[bot] in #798
  • chore(deps): update dependency tar.bzl to v0.10.7 by @renovate[bot] in #802
  • chore(deps): update dependency aspect_bazel_lib to v3.5.0 by @renovate[bot] in #800
  • Fix external tests on Bazel 9.2: patch rules_go duplicate constraints by @helly25 in #810
  • chore(deps): combined dependency upgrades unblocked by #810 by @helly25 in #811
  • Update rules_rust to 0.73.0; drop unused rules_rust WORKSPACE setup by @helly25 in #812
  • chore(deps): update dependency rules_java to v9.7.1 by @renovate[bot] in #804
  • chore(deps): update dependency rules_java to v9.7.2 by @renovate[bot] in #813
  • chore(deps): update dependency googletest to v1.18.0 by @renovate[bot] in #814
  • chore(deps): update dependency tar.bzl to v0.10.8 by @renovate[bot] in #815
  • Expose clang-apply-replacements filegroup in the distribution repo by @jwendell in #817
  • chore(deps): update dependency rules_java to v9.8.0 by @renovate[bot] in #816
  • Fix compiling assembly on OSX by @AustinSchuh in #801
  • Expose headers and static libraries for the toolchain by @alivenets in #809
  • chore(deps): update bazel-contrib/publish-to-bcr action to v1.5.0 by @renovate[bot] in #819
  • chore(deps): update dependency rules_python to v2.3.0 by @renovate[bot] in #820
  • chore(deps): update dependency rules_python to v2.3.0 by @renovate[bot] in #821
  • chore(deps): update dependency boringssl to v0.20260813.0 by @renovate[bot] in #822
  • chore(deps): update dependency rules_python to v2.3.1 by @renovate[bot] in #823
  • Fix illegal ambiguous match when combining sanitizers (fixes #777) by @helly25 in #824
  • Revert "Redact date macros via -imacros header instead of -D on command line (#756)" by @helly25 in #825
  • Wire up LeakSanitizer support by @helly25 in #828
  • Support LLVM prerelease distributions by @helly25 in #829
  • chore(deps): update dependency com_google_protobuf to v36 by @renovate[bot] in #832
  • chore(deps): update dependency rules_python to v2.3.2 by @renovate[bot] in #834
  • chore(deps): update dependency rules_python to v2.3.2 by @renovate[bot] in #835
  • chore(deps): update dependency io_bazel_rules_go to v0.63.0 by @renovate[bot] in #830
  • chore(deps): update trunk-io/trunk-action action to v2 by @renovate[bot] in #833
  • chore(deps): update dependency rules_go to v0.63.0 by @renovate[bot] in #831
  • Add direct zstd and release candidate support by @helly25 in #836
  • chore(deps): update dependency rules_java to v9.9.0 by @renovate[bot] in #837
  • Add LLVM 23.1.0 release by @helly25 in #838
  • Migrate bzl dependency to mboworks_bzl by @helly25 in #840
  • chore(deps): update dependency rules_rust to v0.74.0 by @renovate[bot] in #841

New Contributors

Full Changelog: v1.8.0...v1.9.0

v1.8.0

Choose a tag to compare

@github-actions github-actions released this 13 Jun 08:42
v1.8.0
332d685

Minimum bazel version: 7.0.0

If you're using bzlmod, add the following to MODULE.bazel:

bazel_dep(name = "toolchains_llvm", version = "1.8.0")

# 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")

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 = "332d6856cf41452acbd0ee2636e00232c251dd65",
  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 = "3b05826f256040f91c24dcaad673eb1c91e4cc93f4043d0205f2512327640205",
    strip_prefix = "toolchains_llvm-v1.8.0",
    canonical_id = "v1.8.0",
    url = "https://github.com/bazel-contrib/toolchains_llvm/releases/download/v1.8.0/toolchains_llvm-v1.8.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 .bzelrc:
#   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 = "16.0.0",
)

load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")

llvm_register_toolchains()

What's Changed

  • Add LLVM 22.1.0 and 22.1.1 distribution checksums by @SiarheiFedartsou in #698
  • chore(deps): update dependency com_google_protobuf to v34.1 by @renovate[bot] in #699
  • chore(deps): update dependency bazel_features to v1.44.0 by @renovate[bot] in #701
  • Fix LLVM binary resolution for unrecognized Linux distros by @zakcutner in #703
  • chore(deps): update dependency rules_cc to v0.2.18 by @renovate[bot] in #709
  • chore: fix llvm_checksums.sh and update LLVM 22.1.2-22.1.4 checksums by @helly25 in #710
  • chore(deps): update dependency rules_python to v2 by @renovate[bot] in #711
  • chore(deps): update dependency tar.bzl to v0.10.1 by @renovate[bot] in #704
  • chore(deps): update dependency rules_shell to v0.8.0 by @renovate[bot] in #702
  • chore(deps): update dependency bazel_features to v1.46.0 by @renovate[bot] in #705
  • chore(deps): update dependency tar.bzl to v0.10.2 by @renovate[bot] in #715
  • chore(deps): update dependency rules_python to v2 by @renovate[bot] in #712
  • chore(deps): update dependency aspect_bazel_lib to v3.3.1 by @renovate[bot] in #713
  • chore(deps): update dependency platforms to v1.1.0 by @renovate[bot] in #716
  • Export cc-wrapper from LLVM toolchain repo by @matt-sm in #714
  • chore(deps): update dependency bazel_features to v1.47.0 by @renovate[bot] in #717
  • chore: ignore .trunk/out directory by @helly25 in #718
  • chore: disable renovate in trunk config by @helly25 in #719
  • chore(deps): update softprops/action-gh-release action to v3 by @renovate[bot] in #707
  • Fix buildifier by @helly25 in #720
  • Disable broken boringssl test by @helly25 in #721
  • Update rules_rust to 0.70.0 and fix macOS external test builds by @helly25 in #722
  • download_llvm: keep bundled-distro fallback reproducible by @Wheest in #723
  • chore(deps): update dependency tar.bzl to v0.10.4 by @renovate[bot] in #724
  • Fix run_external_tests.sh shellcheck issues by @helly25 in #725
  • feat: Add extra_linker_files by @mkosiba in #708
  • chore(deps): update dependency boringssl to v0.20260508.0 by @renovate[bot] in #670
  • Auto-detect GCC C++ headers in sysroot for libstdc++ cross-compilation by @srikantharun in #650
  • toolchain: Switch to link_libs for libstdc++ by @phlax in #625
  • Upgrade trunk plugins to v1.9.0 for macOS shellcheck fix by @helly25 in #727
  • chore(deps): update dependency rules_python to v2.0.1 by @renovate[bot] in #728
  • chore(deps): update dependency rules_python to v2.0.1 by @renovate[bot] in #729
  • ci: add stdlib matrix testing (libc++, stdc++, dynamic-stdc++) by @helly25 in #726
  • llvm_distributions: add 22.1.5 releases by @helly25 in #730
  • chore(deps): update dependency bazel_features to v1.47.1 by @renovate[bot] in #732
  • chore(deps): update dependency tar.bzl to v0.10.5 by @renovate[bot] in #733
  • distributions: split inline table into JSONC buckets by @helly25 in #734
  • chore(deps): update dependency com_google_protobuf to v35 by @renovate[bot] in #735
  • fix linux stdc++ sysroot include ordering by @matt-sm in #736
  • distributions: expand base_url templates at JSONC load time by @helly25 in #737
  • chore(deps): update dependency rules_python to v2.0.2 by @renovate[bot] in #738
  • chore(deps): update dependency boringssl to v0.20260526.0 by @renovate[bot] in #741
  • chore(deps): update dependency boringssl to v0.20260526.0 by @renovate[bot] in #742
  • Add target_toolchain_roots and make sysroot more hermetic by @AustinSchuh in #441
  • Apply the path-prefix slash convention to sysroot_path by @AustinSchuh in #743
  • chore(deps): update dependency helly25_bzl to v0.4.0 by @renovate[bot] in #744
  • Fix default url handling by @helly25 in #745
  • helly25/bzl to 0.4.1 by @helly25 in #747
  • Add per-target extra_compiler_files and extra_linker_files bzlmod tags by @matt-sm in #749
  • chore(deps): update dependency io_bazel_rules_go to v0.61.0 by @renovate[bot] in #751
  • chore(deps): update dependency rules_go to v0.61.0 by @renovate[bot] in #752
  • chore(deps): update dependency rules_cc to v0.2.19 by @renovate[bot] in #750
  • darwin: use the SDK's libc++; rework system include handling by @AustinSchuh in #748
  • Add LLVM 22.1.7 by @helly25 in #754
  • Redact date macros via -imacros header instead of -D on command line by @matt-sm in #756
  • ci: aggregate required checks into a single required_checks_done gate by @helly25 in #757
  • chore(deps): update dependency helly25_bzl to v0.4.2 by @renovate[bot] in #746
  • chore(deps): update dependency io_bazel_rules_go to v0.61.1 by @renovate[bot] in #758
  • chore(deps): update dependency rules_go to v0.61.1 by @renovate[bot] in #759
  • Support dynamic libstdc++ and Yocto sysroot layouts by @AustinSchuh in #753
  • chore(deps): update dependency helly25_bzl to v0.4.3 by @renovate[bot] in https://github.com/bazel-contrib/toolchains_llvm/pull/...
Read more