Fix genproto.bzl test broken by unknown commit
Removed load() for defs.bzl from genproto.bzl. I can add this back at a later
CL. This will require adding more copybara rules to rules_cc.
RELNOTES:none
PiperOrigin-RevId: 258362338
diff --git a/tools/build_rules/genproto.bzl b/tools/build_rules/genproto.bzl
index d3dec1f..db55fac 100644
--- a/tools/build_rules/genproto.bzl
+++ b/tools/build_rules/genproto.bzl
@@ -16,8 +16,6 @@
This is a quick and dirty rule to make Bazel compile itself. Do not use.
"""
-load("@rules_cc//cc:defs.bzl", "cc_library")
-
proto_filetype = [".proto"]
def cc_grpc_library(name, src):
@@ -47,7 +45,7 @@
outs = [basename + ".grpc.pb.h", basename + ".grpc.pb.cc", basename + ".pb.cc", basename + ".pb.h"],
)
- cc_library(
+ native.cc_library(
name = name,
srcs = [basename + ".grpc.pb.cc", basename + ".pb.cc"],
hdrs = [basename + ".grpc.pb.h", basename + ".pb.h"],