Upgrade rules_cc to 0.0.13

This version is compatible with Bazel 6 and above.

PiperOrigin-RevId: 686151846
pull/18721/head
Protobuf Team Bot 1 month ago committed by Copybara-Service
parent 003e1ac17c
commit 5aa7abc659
  1. 2
      .github/workflows/test_cpp.yml
  2. 2
      MODULE.bazel
  3. 1
      bazel/private/BUILD
  4. 8
      protobuf_deps.bzl

@ -45,7 +45,7 @@ jobs:
cache_key: Bazel7 cache_key: Bazel7
image: "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:7.1.2-cf84e92285ca133b9c8104ad7b14d70e953cbb8e" image: "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:7.1.2-cf84e92285ca133b9c8104ad7b14d70e953cbb8e"
targets: "//src/... //third_party/utf8_range/..." 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 cache_key: Bazel7bzlmod
image: "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:7.1.2-cf84e92285ca133b9c8104ad7b14d70e953cbb8e" image: "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:7.1.2-cf84e92285ca133b9c8104ad7b14d70e953cbb8e"
targets: "//src/... //third_party/utf8_range/..." targets: "//src/... //third_party/utf8_range/..."

@ -15,7 +15,7 @@ module(
bazel_dep(name = "abseil-cpp", version = "20230802.0.bcr.1", repo_name = "com_google_absl") 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 = "bazel_skylib", version = "1.7.0")
bazel_dep(name = "jsoncpp", version = "1.9.5") 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_fuzzing", version = "0.5.2")
bazel_dep(name = "rules_java", version = "7.11.1") bazel_dep(name = "rules_java", version = "7.11.1")
bazel_dep(name = "rules_jvm_external", version = "6.3") bazel_dep(name = "rules_jvm_external", version = "6.3")

@ -116,6 +116,7 @@ bzl_library(
"//bazel/common:proto_common_bzl", "//bazel/common:proto_common_bzl",
"//bazel/common:proto_info_bzl", "//bazel/common:proto_info_bzl",
"@proto_bazel_features//:features", "@proto_bazel_features//:features",
"@rules_cc//cc:find_cc_toolchain_bzl",
], ],
) )

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

Loading…
Cancel
Save