Releases: bazelbuild/rules_cc
0.2.20
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.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()Full Changelog: 0.2.19...0.2.20
0.2.19
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.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
- Remove archive from objc_library runfiles. by @lilygorsheneva in d305b34
- Fix data on objc_library by @keith in c0baec3
- Fix data on cc_import by @keith in 6495bc3
- Fallback to get_tool_for_action with empty tool_paths by @keith in 3486c59
- Disable empty archive output. by @lilygorsheneva in 4733851
- Mark file paths in
formatfor path mapping by @fmeum in abf355c - fix: use depset instead of None by @kczulko in 6c78f0a
- Add .xll as a recognized C++ shared-library extension by @spektrof in 3aad82a
- Allow cc compilation actions to accept a user-defined comment. by @lilygorsheneva in 70158a9
Default toolchain changes
- Decouple supports_start_end_lib from lld / gold by @jwnimmer-tri in ccaae87
- Remove resolving clang symlink by @keith in f2587eb
- Remove /Z7 from default Windows fastbuild compile flags by @jmr in 06cda56
- Add best effort macOS reproducibility flags by @keith in 8e2b59a
- Add LSan feature to UNIX toolchain by @tyler-yankee in fcd960d
- Add a feature for the default C standard on Windows by @phst in 692a24a
Rules based toolchain changes
- Allow passing env to cc_tool @dzbarsky in d596465
- Pass through target_system_name by @keith in bf92fe4
- Add default objc_fully_link config by @keith in 39a97df
- Add cc_legacy_tool stopgap by @keith in 827e6a2
- Teach cc_args to interop with BuildSettingInfo by @dzbarsky in 12dda40
- Add set_soname feature to rules based toolchain by @keith in e09f3b9
- Set target_libc to macosx for Apple platforms by @keith in 21c8c40
- Allow using requires_none and requires_not_none at the same time by @keith in 8daf978
- Change rules based toolchain macOS conditions to Apple by @keith in 31f137f
- Add has_configured_linker_path cc_tool_capability by @keith in 01cc3d5
- Add sanitize_pwd feature for PWD overwriting by @keith in 59bad3f
- Pass through cpu to rules based toolchains by @keith in 7d32823
- Add support for toolchains in cc_args by @keith in 25ccb77
- Add more missing variables for objc_executable action by @keith in 9c98c34
- Support dynamic execution requirements with cc_tool by @keith in 577b55d
Full Changelog: 0.2.18...0.2.19
0.2.18
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.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
- Use root-relative path to derive the solib name by @fmeum in 3f10097
- Expose merge_cc_info from cc_info.bzl by @lilygorsheneva in 011d6d9
- fix copy_dynamic_libraries_to_binary for subdirectories by @novas0x2a in cdf9913
- Support env for validate_static_library by @dzbarsky in 748fbdf
- Migrate objc fragment options to starlark by @a-googler in 8a95356
- Add Starlark build setting for ObjcConfiguration.alwayslinkByDefault. by @a-googler in 0b29dfc
- Match library filename extensions case-insensitively in create_library_to_link by @Dragnalith in a8b81e9
- Make main_output public API by @keith in 170205b
- Make cc_library(alwayslink=True) apply to .a in srcs by @keith in 852869b
- Fix layering_check with path stripping and textual_hdrs by @keith in 8414b93
- Disable interface library -soname if already passed by @keith in f2cb3b4
- Fix interface library soname by @keith in 8956a5b
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
- Add objc_compile to DEFAULT_SYSROOT_ACTIONS by @cerisier in 39e35dc
- Add some missing cc_variables for Apple platforms by @keith in f32fdf5
- [rule based toolchain] Move compile flags before compiler input flags by @cerisier in 128cf88
- Fix env var data substitutions by @keith in 1a5d8a3
- cc_toolchain's tool_map should be cfg-exec-configured by @dzbarsky in 0b11998
Full Changelog: 0.2.17...0.2.18
0.2.17
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.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()Full Changelog: 0.2.16...0.2.17
0.2.16
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.16")Using WORKSPACE:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_cc",
sha256 = "458b658277ba51b4730ea7a2020efdf1c6dcadf7d30de72e37f4308277fa8c01",
strip_prefix = "rules_cc-0.2.16",
url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.16/rules_cc-0.2.16.tar.gz",
)
load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")
compatibility_proxy_repo()Full Changelog: 0.2.15...0.2.16
0.2.15
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.15")Using WORKSPACE:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_cc",
sha256 = "5e0077e2a5287e18873ae494a4d881d2e6df5f18d5edd3703c2724f9a36a0004",
strip_prefix = "rules_cc-0.2.15",
url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.15/rules_cc-0.2.15.tar.gz",
)
load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")
compatibility_proxy_repo()Full Changelog: 0.2.14...0.2.15
0.2.14
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.14")Using WORKSPACE:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_cc",
sha256 = "a2fdfde2ab9b2176bd6a33afca14458039023edb1dd2e73e6823810809df4027",
strip_prefix = "rules_cc-0.2.14",
url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.14/rules_cc-0.2.14.tar.gz",
)
load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")
compatibility_proxy_repo()Full Changelog: 0.2.13...0.2.14
0.2.14-rc1
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.14-rc1")Using WORKSPACE:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_cc",
sha256 = "012d39e66a7cfaada1e27f9268097640e001c91c4ed7e30282f1042805d2a3c4",
strip_prefix = "rules_cc-0.2.14-rc1",
url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.14-rc1/rules_cc-0.2.14-rc1.tar.gz",
)
load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")
compatibility_proxy_repo()Full Changelog: 0.2.13...0.2.14-rc1
0.2.13-rc1
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.13-rc1")Using WORKSPACE:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_cc",
sha256 = "258169c0b2dea4ef87d2bb96a5fc5f208d8daedb5e5cf1e4f436ce52031eaeee",
strip_prefix = "rules_cc-0.2.13-rc1",
url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.13-rc1/rules_cc-0.2.13-rc1.tar.gz",
)
load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")
compatibility_proxy_repo()Full Changelog: 0.2.12...0.2.13-rc1
0.2.13
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.13")Using WORKSPACE:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_cc",
sha256 = "472ddca8cec1e64ad78e4f0cabbec55936a3baddbe7bef072764ca91504bd523",
strip_prefix = "rules_cc-0.2.13",
url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.13/rules_cc-0.2.13.tar.gz",
)
load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")
compatibility_proxy_repo()Full Changelog: 0.2.12...0.2.13