aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoogler <noreply@google.com>2024-04-05 00:58:22 -0700
committerCopybara-Service <copybara-worker@google.com>2024-04-05 00:59:04 -0700
commit54677903cfe0bdabede623049cf131c23c61e420 (patch)
tree85c2601523acbaa4af434c4b3f1661a4a025f370
parent1361256a688b6c5f1da342a671bee5bcf5c992a2 (diff)
downloadbazelbuild-rules_cc-54677903cfe0bdabede623049cf131c23c61e420.tar.gz
Fix the load broken by a new version of buildifier.
BEGIN_PUBLIC Fix the load broken by a new version of buildifier. Apparently the native-cc lint has been split into native-cc and native-cc-proto. This meant that our native.cc_proto_library was getting incorrectly turned into cc_proto_library when copybara invoked buildifier. END_PUBLIC PiperOrigin-RevId: 622097522 Change-Id: Idb89a5f9facae20f490ac8f83a5adf2859cd52ab
-rw-r--r--cc/defs.bzl6
1 files changed, 2 insertions, 4 deletions
diff --git a/cc/defs.bzl b/cc/defs.bzl
index a141dbb..11be6fd 100644
--- a/cc/defs.bzl
+++ b/cc/defs.bzl
@@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-load("//tools/build_defs/proto/cpp:cc_proto_library.bzl", "cc_proto_library")
-
"""Starlark rules for building C++ projects."""
load("//cc/private/rules_impl:cc_flags_supplier.bzl", _cc_flags_supplier = "cc_flags_supplier")
@@ -105,8 +103,8 @@ def cc_proto_library(**attrs):
**attrs: Rule attributes
"""
- # buildifier: disable=native-cc
- cc_proto_library(**_add_tags(attrs))
+ # buildifier: disable=native-cc-proto
+ native.cc_proto_library(**_add_tags(attrs))
def fdo_prefetch_hints(**attrs):
"""Bazel fdo_prefetch_hints rule.