Skip to content

Commit

Permalink
Upgrade rules_cc to 0.0.13
Browse files Browse the repository at this point in the history
This version is compatible with Bazel 6 and above.

PiperOrigin-RevId: 684107925
  • Loading branch information
protobuf-github-bot authored and comius committed Oct 15, 2024
1 parent aa181e2 commit 3dd4835
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
cache_key: Bazel7
image: "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:7.1.2-cf84e92285ca133b9c8104ad7b14d70e953cbb8e"
targets: "//src/... //third_party/utf8_range/..."
- config: { name: "Bazel7 with Bzlmod", flags: --enable_bzlmod --enable_workspace }
- config: { name: "Bazel7 with Bzlmod", flags: --enable_bzlmod --enable_workspace --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --cxxopt="-Wno-self-assign-overloaded" }
cache_key: Bazel7bzlmod
image: "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:7.1.2-cf84e92285ca133b9c8104ad7b14d70e953cbb8e"
targets: "//src/... //third_party/utf8_range/..."
Expand Down
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ bazel_dep(

bazel_dep(
name = "rules_cc",
version = "0.0.9",
version = "0.0.13",
)

bazel_dep(
Expand Down
1 change: 1 addition & 0 deletions bazel/private/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ bzl_library(
"//bazel/common:proto_common_bzl",
"//bazel/common:proto_info_bzl",
"@proto_bazel_features//:features",
"@rules_cc//cc:find_cc_toolchain_bzl",
],
)

Expand Down
8 changes: 4 additions & 4 deletions protobuf_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ def protobuf_deps():
)

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

if not native.existing_rule("rules_java"):
Expand Down

0 comments on commit 3dd4835

Please sign in to comment.