Skip to content

v1.6.0

Latest

Choose a tag to compare

@github-actions github-actions released this 09 Dec 09:13
· 1 commit to master since this release
ace6215

Minimum bazel version: 7.0.0

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

bazel_dep(name = "toolchains_llvm", version = "1.6.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 = "ace6215bbfe8a76884646b2458b42380e2201607",
  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 = "2b298a1d7ea99679f5edf8af09367363e64cb9fbc46e0b7c1b1ba2b1b1b51058",
    strip_prefix = "toolchains_llvm-v1.6.0",
    canonical_id = "v1.6.0",
    url = "https://github.com/bazel-contrib/toolchains_llvm/releases/download/v1.6.0/toolchains_llvm-v1.6.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

  • Sync back changes to presubmit.yml by @fmeum in #545
  • disable module for all stdlib by @xiaopeng-tranxmart in #544
  • More 21.1.0 by @helly25 in #546
  • First 21.1.1 distributions by @helly25 in #551
  • More 21.1.1 distributions by @helly25 in #552
  • First 21.1.2 distributions by @helly25 in #553
  • Free github runner disk space to fix CI by @zifeitong in #556
  • Update CODEOWNERS by @fmeum in #555
  • Support extra toolchain flags by @zifeitong in #554
  • Update dependency bazel_skylib to v1.8.2 by @renovate[bot] in #534
  • Update dependency com_google_protobuf to v29.5 by @renovate[bot] in #512
  • Update dependency abseil-cpp to v20240722.1 by @renovate[bot] in #558
  • Update dependency rules_python to v1.6.3 by @renovate[bot] in #514
  • Update dependency bazel_features to v1.36.0 by @renovate[bot] in #559
  • Update dependency com_google_googletest to v1.17.0 by @renovate[bot] in #511
  • Update actions/checkout action to v5 by @renovate[bot] in #535
  • Update dependency com_google_protobuf to v32 by @renovate[bot] in #563
  • Update dependency platforms to v1 by @renovate[bot] in #564
  • Implement latest requirements by @helly25 in #472
  • Avoid ../ segments in paths in compiler wrapper by @fmeum in #565
  • cc_wrapper: Handle absolute BASH_SOURCE path by @BoleynSu in #567
  • Mark extension as reproducible by @fmeum in #570
  • Always use LLD on darwin by @dzbarsky in #380
  • Fix darwin arm to amd x-compilation by @dzbarsky in #573
  • chore(deps): update dependency com_google_absl to v20240722.1 by @renovate[bot] in #448
  • chore(deps): update dependency bazel_features to v1.37.0 by @renovate[bot] in #574
  • Fix version variable check. by @helly25 in #576
  • chore(deps): update dependency com_google_protobuf to v33 by @renovate[bot] in #577
  • Add a repository rule for efficient sysroots by @dzbarsky in #572
  • chore(deps): update dependency aspect_bazel_lib to v2.21.2 by @renovate[bot] in #578
  • Make tests build in bazel9 by @dzbarsky in #581
  • helly25_bzl 0.1.2 > 0.3.1 upgrade by @helly25 in #582
  • Avoid spurious warning in system_module_map when no sysroot is configured by @dzbarsky in #584
  • Remove stray files from linker files by @dzbarsky in #583
  • chore(deps): update dependency aspect_bazel_lib to v3 by @renovate[bot] in #579
  • [sysroot] Support integrity and strip attributes by @dzbarsky in #587
  • Tweak builtin-libc++ handling to better support linux cross-arch compilation by @dzbarsky in #588
  • chore(deps): update dependency bazel_features to v1.38.0 by @renovate[bot] in #589
  • Use source directories for toolchain includes and wrapper tools by @dzbarsky in #580
  • chore(deps): update dependency rules_java to v8.16.1 by @renovate[bot] in #453
  • Update llvm version used for tests. by @helly25 in #586
  • chore(deps): update dependency abseil-cpp to v20250814 by @renovate[bot] in #561
  • Update some OS targets. by @helly25 in #593
  • Add new distros up to 21.1.4 by @helly25 in #594
  • Update Workspace Abseil to 20250814.1 by @helly25 in #595
  • Switch from OpenSSL to BoringSSL for tests by @helly25 in #596
  • Correctly update rules_rust by @helly25 in #597
  • Update rules_cc and rules_foreign_cc by @helly25 in #598
  • chore(deps): update dependency rules_java to v9 by @renovate[bot] in #600
  • chore(deps): update dependency rules_java to v9.0.1 by @renovate[bot] in #601
  • chore(deps): update dependency rules_java to v9.0.2 by @renovate[bot] in #602
  • First 21.1.5 LLVM distributions by @helly25 in #603
  • chore(deps): update dependency rules_java to v9.0.3 by @renovate[bot] in #604
  • Update rules_cc to 0.2.14. by @helly25 in #605
  • Update rules_go to 0.59.0 by @helly25 in #609
  • Explain how version/requirement can be used from env vars. by @helly25 in #610
  • chore(deps): update dependency boringssl to v0.20251110.0 by @renovate[bot] in #612
  • Only emit sysroot warning when bazel is new enough by @dzbarsky in #613
  • Update distros without download by @helly25 in #614
  • chore(deps): update dependency com_google_protobuf to v33.1 by @renovate[bot] in #615
  • Add load for cc_import by @dzbarsky in #616
  • chore(deps): update dependency rules_python to v1.7.0 by @renovate[bot] in #617
  • chore(deps): update dependency tar.bzl to v0.7.0 by @renovate[bot] in #618
  • chore(deps): update actions/checkout action to v6 by @renovate[bot] in #619
  • Add LLVM 21.1.6 distribution checksums by @helly25 in #620
  • toolchain: Set link_libs rather than link_flags by @phlax in #624
  • chore(deps): update dependency rules_java to v9.1.0 by @renovate[bot] in #627
  • [bugfix] Reference os variable instead of os function by @ha1dfo in #630

New Contributors

Full Changelog: v1.5.0...v1.6.0