소스 검색

corrected Bazel target generation logic for Windows

billfeng327 6 년 전
부모
커밋
d16597ab73
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      bazel/grpc_build_system.bzl

+ 3 - 1
bazel/grpc_build_system.bzl

@@ -169,9 +169,11 @@ def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data
         "exec_compatible_with": exec_compatible_with,
     }
     if uses_polling:
+        # Only run targets with pollers for non-MSVC
+        # Only run targets without pollers for MSVC
         native.cc_test(
             testonly = True,
-            tags = (["manual"] if is_msvc() else tags),
+            tags = tags if is_msvc() else ["manual"],
             **args
         )
         for poller in POLLERS: