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",
"cc_lite_proto_library",
"expand_suffixes",
"proto_library",
)
licenses(["notice"])

@ -1,17 +1,20 @@
# copybara:insert_for_google3_begin
# 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,
# )
# load("//tools/build_defs/proto/cpp:cc_proto_library.bzl", _cc_proto_library="cc_proto_library")
# copybara:insert_end
# copybara:strip_for_google3_begin
_cc_proto_library = native.cc_proto_library
# 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):
srcs = [name + ".cc"]
native.genrule(
@ -49,8 +52,8 @@ def cc_lite_proto_library(name, srcs, outs):
)
def expand_suffixes(vals, suffixes):
ret = []
for val in vals:
for suffix in suffixes:
ret.append(val + suffix)
return ret
ret = []
for val in vals:
for suffix in suffixes:
ret.append(val + suffix)
return ret

Loading…
Cancel
Save