From ddadd0b3d674d775baa9ff4ab2f83ce369cca21d Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Fri, 13 Sep 2024 10:37:59 -0700 Subject: [PATCH] Use rules_cc everywhere in protobuf Nice to have in the future when rules_cc are in the repository, but not necessary ATM. PiperOrigin-RevId: 674352147 --- bazel/private/bazel_cc_proto_library.bzl | 1 + bazel/private/cc_proto_support.bzl | 2 ++ 2 files changed, 3 insertions(+) diff --git a/bazel/private/bazel_cc_proto_library.bzl b/bazel/private/bazel_cc_proto_library.bzl index 5c044c713971..3dba4880ac79 100644 --- a/bazel/private/bazel_cc_proto_library.bzl +++ b/bazel/private/bazel_cc_proto_library.bzl @@ -8,6 +8,7 @@ """Bazel's implementation of cc_proto_library""" load("@rules_cc//cc:find_cc_toolchain.bzl", "use_cc_toolchain") +load("@rules_cc//cc/common:cc_info.bzl", "CcInfo") load("//bazel/common:proto_common.bzl", "proto_common") load("//bazel/common:proto_info.bzl", "ProtoInfo") load("//bazel/private:cc_proto_support.bzl", "cc_proto_compile_and_link") diff --git a/bazel/private/cc_proto_support.bzl b/bazel/private/cc_proto_support.bzl index 3da4420da7ae..fbd78adba9b1 100644 --- a/bazel/private/cc_proto_support.bzl +++ b/bazel/private/cc_proto_support.bzl @@ -9,6 +9,8 @@ load("@proto_bazel_features//:features.bzl", "bazel_features") load("@rules_cc//cc:find_cc_toolchain.bzl", "find_cc_toolchain") +load("@rules_cc//cc/common:cc_common.bzl", "cc_common") +load("@rules_cc//cc/common:cc_info.bzl", "CcInfo") def get_feature_configuration(ctx, has_sources, extra_requested_features = []): """Returns C++ feature configuration for compiling and linking generated C++ files.