Skip to content

Releases

0.2.28

Choose a tag to compare

@github-actions github-actions released this 05 Nov 18:57

Using bzlmod with Bazel 6 or later:

  1. [Bazel 6] Add common --enable_bzlmod to .bazelrc.

  2. Add to your MODULE.bazel file:

bazel_dep(name = "rules_cc", version = "0.2.28")

Using WORKSPACE:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_cc",
    sha256 = "0c51346fe5e7d2ee0b64a66623df0753bbb365877e6f85b8590e8de70448633e",
    strip_prefix = "rules_cc-0.2.28",
    url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.28/rules_cc-0.2.28.tar.gz",
)

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

What's Changed

Default toolchain changes

Rules based toolchain changes

Full Changelog: 0.2.27...0.2.28

0.2.27

Choose a tag to compare

@github-actions github-actions released this 22 Oct 16:46

Using bzlmod with Bazel 6 or later:

  1. [Bazel 6] Add common --enable_bzlmod to .bazelrc.

  2. Add to your MODULE.bazel file:

bazel_dep(name = "rules_cc", version = "0.2.27")

Using WORKSPACE:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_cc",
    sha256 = "6bcf1b46d9e629cbe4c96d7bfc56f61034c2193b7b16001201282ea50bef5d91",
    strip_prefix = "rules_cc-0.2.27",
    url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.27/rules_cc-0.2.27.tar.gz",
)

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

What's Changed

Default toolchain changes

Rules based toolchain changes

Full Changelog: 0.2.26...0.2.27

0.2.26

Choose a tag to compare

@github-actions github-actions released this 05 Oct 22:01

Using bzlmod with Bazel 6 or later:

  1. [Bazel 6] Add common --enable_bzlmod to .bazelrc.

  2. Add to your MODULE.bazel file:

bazel_dep(name = "rules_cc", version = "0.2.26")

Using WORKSPACE:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_cc",
    sha256 = "44a8f325fa2b5cfb0ecaddda4365b3374eeefa1f97309fdb9301abb0897dfa7a",
    strip_prefix = "rules_cc-0.2.26",
    url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.26/rules_cc-0.2.26.tar.gz",
)

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

What's Changed

Notable changes

Rules based toolchain changes

Full Changelog: 0.2.25...0.2.26

0.2.25

Choose a tag to compare

@github-actions github-actions released this 14 Sep 22:33

Using bzlmod with Bazel 6 or later:

  1. [Bazel 6] Add common --enable_bzlmod to .bazelrc.

  2. Add to your MODULE.bazel file:

bazel_dep(name = "rules_cc", version = "0.2.25")

Using WORKSPACE:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_cc",
    sha256 = "bd7124a844d0403b4b353bcea34d6c8b2ba88dc26881c26c9ee668da89b71846",
    strip_prefix = "rules_cc-0.2.25",
    url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.25/rules_cc-0.2.25.tar.gz",
)

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

What's Changed

Notable changes

  • Throw an error if include attributes contain an absolute path instead of silently ignoring them. by @a-googler in c85b4d3
  • Disable macOS toolchain by default (use apple_support instead) by @keith in 0c36f2b
  • Allow 'includes = ["."]' in the root of the repo by @keith in 0d150d5
  • Add //cc/libc config settings for C standard libraries (#792) by @fmeum in dc42405
  • Add best effort toolchain feature docs by @keith in 2c27663
  • Add loongarch64 support by @zhaixiaojuan in 5178408
  • Support path mapping in CppLink IFF it's non-lto. by @lilygorsheneva in ad214a9
  • Create features to enable/disable path mapping for CppLink. by @lilygorsheneva in ab613e1
  • Add toolchain env + default env to dwp actions by @keith in d8eea5a
  • Fix system_include_paths with textual_hdrs/hdrs and strip_include_prefix by @keith in db79849
  • Expose Bazel cc rule functions for extension by @hvadehra in 6c6a87e
  • Expand tree artifacts in textual_hdrs in generated module maps (#787) by @fmeum in 6cc1bf0
  • Honor object extensions for ThinLTO merged artifacts (#853) by @cerisier in aff5441
  • Expose a new API that copying from an existing library with overrides, so that callers don't need to know all internal attributes to avoid silently dropping some. by @a-googler in 14686ad
  • Implement Starlark-level enforcement of disallowed compiler flags in copts, conlyopts, cxxopts. by @a-googler in f687cbc
  • Move coverage script / flag to public package (#867) by @keith in 661b75d
  • Support C++20 modules, GCC part by @PikachuHyA in faf2113
  • Fix conflicting actions for C++20 modules info files in PIC/non-PIC b… (#834) by @PikachuHyA in 7b711b6
  • Support C++20 modules, MSVC part (#836) by @PikachuHyA in de72c61

Default toolchain changes

Rules based toolchain changes

  • Support C++20 modules in the rules-based toolchain API by @fmeum in 0be22af
  • Fix another case of tool_paths vs action configs by @keith in 736fa13
  • Add ACTION_NAMES.cpp_header_analysis to ALL_CPP_COMPILE_ACTION_NAMES. by @anforowicz in 6c1531c
  • Default cc_sysroot data to sysroot if not passed (#875) by @keith in 3000380

Full Changelog: 0.2.22...0.2.25

0.2.22

Choose a tag to compare

@github-actions github-actions released this 07 Jul 16:31

Using bzlmod with Bazel 6 or later:

  1. [Bazel 6] Add common --enable_bzlmod to .bazelrc.

  2. Add to your MODULE.bazel file:

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

Default toolchain changes

  • Add -mmacosx-version-min back to default toolchain by @keith in 21e1430

Rules based toolchain changes

Full Changelog: 0.2.21...0.2.22

0.2.21

Choose a tag to compare

@github-actions github-actions released this 03 Jul 07:59

Using bzlmod with Bazel 6 or later:

  1. [Bazel 6] Add common --enable_bzlmod to .bazelrc.

  2. Add to your MODULE.bazel file:

bazel_dep(name = "rules_cc", version = "0.2.21")

Using WORKSPACE:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_cc",
    sha256 = "962251923438d27fc030c2d9d35c058a7f7da4fed42c42ad5342c7b4403d4cf2",
    strip_prefix = "rules_cc-0.2.21",
    url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.21/rules_cc-0.2.21.tar.gz",
)

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

What's Changed

New Features

  • Support for adding runtimes-on-demand with @bazel_tools//tools/cpp:cc_runtimes_toolchain_type . by @trybka in 5eeedeb

Default toolchain changes

Rules based toolchain changes

Full Changelog: 0.2.20...0.2.21

0.2.20

Choose a tag to compare

@github-actions github-actions released this 22 Jun 16:02

Using bzlmod with Bazel 6 or later:

  1. [Bazel 6] Add common --enable_bzlmod to .bazelrc.

  2. Add to your MODULE.bazel file:

bazel_dep(name = "rules_cc", version = "0.2.20")

Using WORKSPACE:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_cc",
    sha256 = "69e05df29f0010ba248ef8dafc1f084c8fd2f5c553da634422d8167f5c4b277b",
    strip_prefix = "rules_cc-0.2.20",
    url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.20/rules_cc-0.2.20.tar.gz",
)

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

What's Changed

Notable changes

  • Add a dedicated exec group (cpp_dwp) for CcGenerateDwp actions of cc_binary and cc_test targets by @a-googler in 4c700e9
  • [feat] add support for dwo_files in DebugPackageInfo on bazel 9 by @molar in 8edac4e
  • Fix external_include_paths still using -iquote by @keith in c622263
  • Add env var to disable macOS toolchain by @keith in 7eb96e3
  • Add generated windows DEF file toolchain action by @cerisier in c9404cf

Default toolchain changes

Rules based toolchain changes

Full Changelog: 0.2.19...0.2.20

0.2.19

Choose a tag to compare

@github-actions github-actions released this 01 Jun 09:04

Using bzlmod with Bazel 6 or later:

  1. [Bazel 6] Add common --enable_bzlmod to .bazelrc.

  2. Add to your MODULE.bazel file:

bazel_dep(name = "rules_cc", version = "0.2.19")

Using WORKSPACE:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_cc",
    sha256 = "351248f6be41d18694d4d7c390aaebd9f865eea72a4758b2c9d782ae744c97f4",
    strip_prefix = "rules_cc-0.2.19",
    url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.19/rules_cc-0.2.19.tar.gz",
)

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

I curated the release notes for the latest release if someone can copy-paste them in to https://github.com/bazelbuild/rules_cc/releases/tag/0.2.19

What's Changed

New features

  • Add action types for llvm-profdata and gcov by @keith in de6e35e
  • Add local_defines to objc_library by @keith in 2310907
  • Migrate objc.builtin_objc_strip_action to a build setting. by @a-googler in 804007d
  • Add feature to _virtual_includes when paths are only stripped by @keith in 63790f3
  • Add local_includes to cc_library / cc_binary by @keith in ab84bd3

Other notable changes

Default toolchain changes

Rules based toolchain changes

Full Changelog: 0.2.18...0.2.19

0.2.18

Choose a tag to compare

@github-actions github-actions released this 21 Apr 15:24

Using bzlmod with Bazel 6 or later:

  1. [Bazel 6] Add common --enable_bzlmod to .bazelrc.

  2. Add to your MODULE.bazel file:

bazel_dep(name = "rules_cc", version = "0.2.18")

Using WORKSPACE:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_cc",
    sha256 = "1de5b47721fce0af0dd453b3071228fdfc44bd18199826b3f0b03b423aae9f65",
    strip_prefix = "rules_cc-0.2.18",
    url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.18/rules_cc-0.2.18.tar.gz",
)

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

I curated the release notes for the latest release if someone can copy-paste them in to https://github.com/bazelbuild/rules_cc/releases/tag/0.2.18

What's Changed

Notable changes

Default toolchain changes

  • Fix clang version parsing on Windows. by @polasek in 333af1f
  • external_include_paths feature: pass /external:W0 to VC++ by @phst in dd7100f
  • Make Windows MSVC builds actually deterministic by @mochaaP in 94bda81

Rules based toolchain changes

Full Changelog: 0.2.17...0.2.18

0.2.17

Choose a tag to compare

@github-actions github-actions released this 18 Feb 10:32

Using bzlmod with Bazel 6 or later:

  1. [Bazel 6] Add common --enable_bzlmod to .bazelrc.

  2. Add to your MODULE.bazel file:

bazel_dep(name = "rules_cc", version = "0.2.17")

Using WORKSPACE:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_cc",
    sha256 = "283fa1cdaaf172337898749cf4b9b1ef5ea269da59540954e51fba0e7b8f277a",
    strip_prefix = "rules_cc-0.2.17",
    url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.17/rules_cc-0.2.17.tar.gz",
)

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

What's Changed

Notable changes

  • Make strip_include_prefix apply to textual_hdrs by @keith in 1212a51

Default toolchains

Rules based toolchains

  • Remove allowlist_include_directories from data by @keith in 75de4a4

Full Changelog: 0.2.16...0.2.17