Moved cc_api_version attribute to proto_library().

pull/13171/head
Joshua Haberman 4 years ago
parent 4a84390c89
commit d2446fd2db
  1. 1
      benchmarks/BUILD
  2. 25
      benchmarks/build_defs.bzl

@ -8,6 +8,7 @@ load(
"tmpl_cc_binary", "tmpl_cc_binary",
"cc_lite_proto_library", "cc_lite_proto_library",
"expand_suffixes", "expand_suffixes",
"proto_library",
) )
licenses(["notice"]) licenses(["notice"])

@ -1,17 +1,20 @@
# copybara:insert_for_google3_begin # copybara:insert_for_google3_begin
# load("//tools/build_defs/proto/cpp:cc_proto_library.bzl", cc_proto_library="cc_proto_library") # load("//tools/build_defs/proto/cpp:cc_proto_library.bzl", _cc_proto_library="cc_proto_library")
# def _cc_proto_library(**kwargs):
# cc_proto_library(
# cc_api_version = 2,
# **kwargs,
# )
# copybara:insert_end # copybara:insert_end
# copybara:strip_for_google3_begin # copybara:strip_for_google3_begin
_cc_proto_library = native.cc_proto_library _cc_proto_library = native.cc_proto_library
# copybara:strip_end # copybara:strip_end
def proto_library(**kwargs):
native.proto_library(
# copybara:insert_for_google3_begin
# cc_api_version = 2,
# copybara:insert_end
**kwargs,
)
def tmpl_cc_binary(name, gen, args, replacements = [], **kwargs): def tmpl_cc_binary(name, gen, args, replacements = [], **kwargs):
srcs = [name + ".cc"] srcs = [name + ".cc"]
native.genrule( native.genrule(
@ -49,8 +52,8 @@ def cc_lite_proto_library(name, srcs, outs):
) )
def expand_suffixes(vals, suffixes): def expand_suffixes(vals, suffixes):
ret = [] ret = []
for val in vals: for val in vals:
for suffix in suffixes: for suffix in suffixes:
ret.append(val + suffix) ret.append(val + suffix)
return ret return ret

Loading…
Cancel
Save