Remove protos::upb_cc_proto_library_copts__for_generated_code_only_do_not_use

PiperOrigin-RevId: 663017124
pull/17815/head
Hong Shin 4 months ago committed by Copybara-Service
parent c4942ceefb
commit 29a024831f
  1. 4
      hpb/BUILD
  2. 4
      hpb/bazel/upb_cc_proto_library.bzl
  3. 11
      protos/BUILD

@ -147,9 +147,9 @@ cc_test(
)
upb_cc_proto_library_copts(
name = "upb_cc_proto_library_copts__for_generated_code_only_do_not_use",
name = "upb_cc_proto_library_copts",
copts = UPB_DEFAULT_CPPOPTS,
visibility = ["//visibility:public"],
visibility = ["//hpb/bazel:__pkg__"],
)
cc_test(

@ -235,7 +235,7 @@ def _upb_cc_proto_library_aspect_impl(target, ctx):
_upb_cc_proto_library_aspect = aspect(
attrs = {
"_ccopts": attr.label(
default = "//hpb:upb_cc_proto_library_copts__for_generated_code_only_do_not_use",
default = "//hpb:upb_cc_proto_library_copts",
),
"_gen_upbprotos": attr.label(
executable = True,
@ -287,7 +287,7 @@ upb_cc_proto_library = rule(
providers = [ProtoInfo],
),
"_ccopts": attr.label(
default = "//protos:upb_cc_proto_library_copts__for_generated_code_only_do_not_use",
default = "//hpb:upb_cc_proto_library_copts",
),
},
)

@ -7,10 +7,6 @@
# begin:google_only
# load(
# "//hpb/bazel:upb_cc_proto_library.bzl",
# "upb_cc_proto_library_copts",
# )
# load(
# "//upb/bazel:build_defs.bzl",
# "UPB_DEFAULT_CPPOPTS",
# )
@ -30,11 +26,4 @@
# "//hpb",
# ],
# )
#
# upb_cc_proto_library_copts(
# name = "upb_cc_proto_library_copts__for_generated_code_only_do_not_use",
# copts = UPB_DEFAULT_CPPOPTS,
# visibility = ["//visibility:public"],
# )
#
# end:google_only

Loading…
Cancel
Save