Fix xds_end2end_test dyld (#28133)

pull/28144/head^2
Esun Kim 3 years ago committed by GitHub
parent eec0ca98c1
commit 11f440775b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      bazel/grpc_build_system.bzl
  2. 1
      test/cpp/end2end/xds/BUILD

@ -252,7 +252,7 @@ def ios_cc_test(
deps = ios_test_deps,
)
def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data = [], uses_polling = True, language = "C++", size = "medium", timeout = None, tags = [], exec_compatible_with = [], exec_properties = {}, shard_count = None, flaky = None, copts = []):
def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data = [], uses_polling = True, language = "C++", size = "medium", timeout = None, tags = [], exec_compatible_with = [], exec_properties = {}, shard_count = None, flaky = None, copts = [], linkstatic = None):
"""A cc_test target for use in the gRPC repo.
Args:
@ -274,6 +274,7 @@ def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data
shard_count: The number of shards for this test.
flaky: Whether this test is flaky.
copts: Add these to the compiler invocation.
linkstatic: link the binary in static mode
"""
copts = copts + if_mac(["-DGRPC_CFSTREAM"])
if language.upper() == "C":
@ -294,6 +295,7 @@ def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data
"exec_properties": exec_properties,
"shard_count": shard_count,
"flaky": flaky,
"linkstatic": linkstatic,
}
if uses_polling:
# the vanilla version of the test should run on platforms that only

@ -64,6 +64,7 @@ grpc_cc_test(
"gtest",
],
flaky = True, # TODO(b/144705388)
linkstatic = True, # Fixes dyld error on MacOS
shard_count = 50,
tags = [
"no_test_ios",

Loading…
Cancel
Save