Skip to content

Commit

Permalink
Merge pull request #164 from yvanwang/master
Browse files Browse the repository at this point in the history
fix tutorial build error
  • Loading branch information
Barenboim authored Feb 9, 2022
2 parents 4b00cbc + 60511dd commit d01d121
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion srpc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ def srpc_cc_library(

if type == "thrift":
output_headers = proto_output_headers + thrift_output_headers
gen_proto = "thrift"
if type == "proto":
output_headers = proto_output_headers
gen_proto = "protobuf"

genrule_cmd = " ".join([
"SRCS=($(SRCS));",
"for f in $${SRCS[@]:0:%s}; do" % len(srcs),
"$(location %s)" % (tool_path),
" %s " % type,
" %s " % gen_proto,
"$$f",
output_directory + ";",
"done",
Expand Down

0 comments on commit d01d121

Please sign in to comment.