Skip to content

Commit 158312d

Browse files
Automated Code Change
PiperOrigin-RevId: 782733463
1 parent d6a1b35 commit 158312d

File tree

10 files changed

+20
-8
lines changed

10 files changed

+20
-8
lines changed

hpb/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# https://developers.google.com/open-source/licenses/bsd
77

88
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
9+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
10+
load("@rules_cc//cc:cc_test.bzl", "cc_test")
911
load(
1012
"//hpb/bazel:hpb_proto_library.bzl",
1113
"hpb_proto_library_copts",

hpb/backend/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# license that can be found in the LICENSE file or at
66
# https://developers.google.com/open-source/licenses/bsd
77

8+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
9+
810
package(default_applicable_licenses = ["//:license"])
911

1012
cc_library(

hpb/backend/cpp/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# license that can be found in the LICENSE file or at
66
# https://developers.google.com/open-source/licenses/bsd
77

8+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
9+
810
package(default_applicable_licenses = ["//:license"])
911

1012
cc_library(

hpb/backend/upb/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# license that can be found in the LICENSE file or at
66
# https://developers.google.com/open-source/licenses/bsd
77

8+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
9+
load("@rules_cc//cc:cc_test.bzl", "cc_test")
810
load(
911
"//upb/bazel:build_defs.bzl",
1012
"UPB_DEFAULT_CPPOPTS",

hpb/internal/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# license that can be found in the LICENSE file or at
66
# https://developers.google.com/open-source/licenses/bsd
77

8+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
9+
load("@rules_cc//cc:cc_test.bzl", "cc_test")
810
load(
911
"//upb/bazel:build_defs.bzl",
1012
"UPB_DEFAULT_CPPOPTS",

python/build_targets.bzl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Most users should depend upon public aliases in the root:
99
"""
1010

1111
load("@bazel_skylib//lib:selects.bzl", "selects")
12+
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
13+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
1214
load("@rules_pkg//pkg:mappings.bzl", "pkg_files", "strip_prefix")
1315
load("@rules_python//python:defs.bzl", "py_library")
1416
load("//:protobuf.bzl", "internal_py_proto_library")
@@ -72,8 +74,7 @@ def build_targets(name):
7274
],
7375
strip_prefix = "src",
7476
)
75-
76-
native.cc_binary(
77+
cc_binary(
7778
name = "google/protobuf/internal/_api_implementation.so",
7879
srcs = ["google/protobuf/internal/api_implementation.cc"],
7980
copts = COPTS + [
@@ -107,8 +108,7 @@ def build_targets(name):
107108
"define": "allow_oversize_protos=true",
108109
},
109110
)
110-
111-
native.cc_binary(
111+
cc_binary(
112112
name = "google/protobuf/pyext/_message.so",
113113
srcs = native.glob([
114114
"google/protobuf/pyext/*.cc",
@@ -448,8 +448,7 @@ def build_targets(name):
448448
name = "proto_json_test",
449449
srcs = ["google/protobuf/internal/proto_json_test.py"],
450450
)
451-
452-
native.cc_library(
451+
cc_library(
453452
name = "proto_api",
454453
srcs = ["google/protobuf/proto_api.cc"],
455454
hdrs = ["google/protobuf/proto_api.h"],

rust/cpp_kernel/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This package contains Rust protobuf runtime implementation built on top of the C++ backend.
22

3+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
34
load("@rules_rust//rust:defs.bzl", "rust_library")
45

56
cc_library(

rust/test/cpp/interop/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This package contains tests exercising C++/Rust interop in the cpp kernel.
22

3+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
34
load("@rules_rust//rust:defs.bzl", "rust_test")
45
load("//bazel:cc_proto_library.bzl", "cc_proto_library")
56
load("//bazel:proto_library.bzl", "proto_library")

rust/test/shared/utf8/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@rules_cc//cc:cc_test.bzl", "cc_test")
12
load("@rules_rust//rust:defs.bzl", "rust_test")
23
load("//bazel:cc_proto_library.bzl", "cc_proto_library")
34
load("//bazel:proto_library.bzl", "proto_library")

src/google/protobuf/compiler/test_plugin_injection.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2929
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3030

31+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
3132
load("//build_defs:cpp_opts.bzl", "COPTS")
3233

3334
# This works around https://github.com/bazelbuild/bazel/issues/19124 by using a generated header to
@@ -57,8 +58,7 @@ EOF
5758
visibility = ["//visibility:private"],
5859
testonly = True,
5960
)
60-
61-
native.cc_library(
61+
cc_library(
6262
name = name,
6363
hdrs = [hdr],
6464
strip_include_prefix = "/src",

0 commit comments

Comments
 (0)