Skip to content

Commit 3dd4835

Browse files
protobuf-github-botcomius
authored andcommitted
Upgrade rules_cc to 0.0.13
This version is compatible with Bazel 6 and above. PiperOrigin-RevId: 684107925
1 parent aa181e2 commit 3dd4835

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/workflows/test_cpp.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
cache_key: Bazel7
4646
image: "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:7.1.2-cf84e92285ca133b9c8104ad7b14d70e953cbb8e"
4747
targets: "//src/... //third_party/utf8_range/..."
48-
- config: { name: "Bazel7 with Bzlmod", flags: --enable_bzlmod --enable_workspace }
48+
- config: { name: "Bazel7 with Bzlmod", flags: --enable_bzlmod --enable_workspace --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --cxxopt="-Wno-self-assign-overloaded" }
4949
cache_key: Bazel7bzlmod
5050
image: "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:7.1.2-cf84e92285ca133b9c8104ad7b14d70e953cbb8e"
5151
targets: "//src/... //third_party/utf8_range/..."

MODULE.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ bazel_dep(
3030

3131
bazel_dep(
3232
name = "rules_cc",
33-
version = "0.0.9",
33+
version = "0.0.13",
3434
)
3535

3636
bazel_dep(

bazel/private/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ bzl_library(
116116
"//bazel/common:proto_common_bzl",
117117
"//bazel/common:proto_info_bzl",
118118
"@proto_bazel_features//:features",
119+
"@rules_cc//cc:find_cc_toolchain_bzl",
119120
],
120121
)
121122

protobuf_deps.bzl

+4-4
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ def protobuf_deps():
9090
)
9191

9292
if not native.existing_rule("rules_cc"):
93-
_github_archive(
93+
http_archive(
9494
name = "rules_cc",
95-
repo = "https://github.com/bazelbuild/rules_cc",
96-
commit = "c8c38f8c710cbbf834283e4777916b68261b359c", # 0.0.9
97-
sha256 = "5f862a44bbd032e1b48ed53c9c211ba2a1da60e10c5baa01c97369c249299ecb",
95+
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.13/rules_cc-0.0.13.tar.gz"],
96+
sha256 = "d9bdd3ec66b6871456ec9c965809f43a0901e692d754885e89293807762d3d80",
97+
strip_prefix = "rules_cc-0.0.13",
9898
)
9999

100100
if not native.existing_rule("rules_java"):

0 commit comments

Comments
 (0)