Minimum bazel version: 7.0.0
If you're using bzlmod
, add the following to MODULE.bazel
:
bazel_dep(name = "toolchains_llvm", version = "1.3.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 = "b3c96d2dbc698eab752366bbe747e2a7df7fa504",
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 = "d3c255b2ceec9eaebb6b5a44c904a48429b8dcb71e630de2f103e7b4aab9f073",
strip_prefix = "toolchains_llvm-v1.3.0",
canonical_id = "v1.3.0",
url = "https://github.com/bazel-contrib/toolchains_llvm/releases/download/v1.3.0/toolchains_llvm-v1.3.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
- chore(deps): update dependency rules_rust by @renovate in #387
- chore(deps): update dependency rules_rust to v0.52.1 by @renovate in #397
- chore(deps): update dependency rules_rust to v0.52.2 by @renovate in #398
- chore(deps): update dependency rules_rust to v0.52.2 by @renovate in #399
- chore(deps): update dependency io_bazel_rules_go to v0.50.1 by @renovate in #383
- ci: update
libtinfo5
installation for Ubuntu 24.04 by @rrbutani in #401 - chore(deps): update dependency rules_go to v0.50.1 by @renovate in #384
- chore(deps): update dependency rules_foreign_cc to v0.12.0 by @renovate in #377
- Support WebAssembly target platforms
wasm{32,64}-unknown-unknown
by @jmillikin in #405 - chore(deps): update dependency rules_rust to v0.53.0 by @renovate in #406
- chore(deps): update dependency rules_rust to v0.53.0 by @renovate in #407
- Fix test module for Bazel 8 by @fmeum in #410
- Fix shfmt config to disable Bash code simplification by @thirtyseven in #411
- Make sure that only expands existing response files by @ormandi in #409
- Add support for 19.1.1-3 by @amessing in #412
- chore(deps): update dependency rules_rust to v0.54.0 by @renovate in #414
- chore(deps): update dependency rules_rust to v0.54.1 by @renovate in #416
- fix: Skip cxx_builtin_include_directories filtering when remote by @honnix in #415
- chore(deps): update dependency rules_foreign_cc to v0.13.0 by @renovate in #420
- [CI] Fix for bazel 8.x by @keith in #427
- Add dynamic-stdc++ by @keith in #400
- Remove native-java buildifier warning by @keith in #428
- chore(deps): update dependency com_google_protobuf to v29.2 by @renovate in #429
- chore(deps): update dependency com_google_protobuf to v29.3 by @renovate in #434
- Plumb conly_flags through to the toolchain by @AustinSchuh in #435
- Add support for extracting zst LLVM distributions by @AustinSchuh in #433
- Add support for nixos by @DD5HT in #436
- chore(deps): update dependency platforms to v0.0.11 by @renovate in #439
- cc_toolchain: prefix include directories with
%workspace%
by @ParkMyCar in #438 - Expose clang-format, git-clang-format, and libclang by @AustinSchuh in #432
- Remove -fdebug-prefix-map for toolchain by @keith in #440
- chore(deps): update dependency rules_java to v8.7.0 by @renovate in #442
- chore(deps): update dependency rules_python to v1.1.0 by @renovate in #443
- chore(deps): update dependency rules_java to v8.7.1 by @renovate in #446
New Contributors
- @jmillikin made their first contribution in #405
- @thirtyseven made their first contribution in #411
- @ormandi made their first contribution in #409
- @amessing made their first contribution in #412
- @honnix made their first contribution in #415
- @AustinSchuh made their first contribution in #435
- @DD5HT made their first contribution in #436
- @ParkMyCar made their first contribution in #438
Full Changelog: v1.2.0...v1.3.0