Using bzlmod with Bazel 6 or later:
-
[Bazel 6] Add
common --enable_bzlmodto.bazelrc. -
Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_cc", version = "0.2.22")Using WORKSPACE:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_cc",
sha256 = "81c10a95a5c22d838276ee90d712635d6042419fdfca5ef88328226b6321e53b",
strip_prefix = "rules_cc-0.2.22",
url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.22/rules_cc-0.2.22.tar.gz",
)
load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")
compatibility_proxy_repo()What's Changed
Other notable changes
- Propagate cc_shared_library GraphStructureAspect to toolchains. by @lilygorsheneva in 840d532
- Fix kwargs handling in c++20 modules functions. by @lilygorsheneva in 0662ed2
Default toolchain changes
Rules based toolchain changes
Full Changelog: 0.2.21...0.2.22