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: 686151846
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Oct 15, 2024
1 parent 003e1ac commit 5aa7abc
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 @@ -15,7 +15,7 @@ module(
bazel_dep(name = "abseil-cpp", version = "20230802.0.bcr.1", repo_name = "com_google_absl")
bazel_dep(name = "bazel_skylib", version = "1.7.0")
bazel_dep(name = "jsoncpp", version = "1.9.5")
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "rules_cc", version = "0.0.13")
bazel_dep(name = "rules_fuzzing", version = "0.5.2")
bazel_dep(name = "rules_java", version = "7.11.1")
bazel_dep(name = "rules_jvm_external", version = "6.3")
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 5aa7abc

Please sign in to comment.