Kaynağa Gözat

Merge pull request #164 from yvanwang/master

fix tutorial build error
xiehan 2 yıl önce
ebeveyn
işleme
d01d121800
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      srpc.bzl

+ 3 - 1
srpc.bzl

@@ -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",