瀏覽代碼

Merge pull request #899 from pherl/cc_bazel

Use && for internal_copied_filegroup.
Jisi Liu 10 年之前
父節點
當前提交
96da4edde0
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      protobuf.bzl

+ 3 - 3
protobuf.bzl

@@ -180,9 +180,9 @@ def internal_copied_filegroup(
       name=name+"_genrule",
       name=name+"_genrule",
       srcs=srcs,
       srcs=srcs,
       outs=outs,
       outs=outs,
-      cmd=";".join(["cp $(location %s) $(location %s)" % \
-                    (s, _RelativeOutputPath(s, include)) \
-                    for s in srcs]))
+      cmd=" && ".join(["cp $(location %s) $(location %s)" %
+                       (s, _RelativeOutputPath(s, include))
+                       for s in srcs]))
 
 
   native.filegroup(
   native.filegroup(
       name=name,
       name=name,