Build c-ares bazel lib with alwayslink=1

pull/18201/head
Alex Polcyn 6 years ago
parent b558519d99
commit 9644e588f6
  1. 3
      test/cpp/end2end/cfstream_test.cc
  2. 1
      third_party/cares/cares.BUILD

@ -270,9 +270,6 @@ int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv); ::testing::InitGoogleTest(&argc, argv);
grpc_test_init(argc, argv); grpc_test_init(argc, argv);
gpr_setenv("grpc_cfstream", "1"); gpr_setenv("grpc_cfstream", "1");
// TODO (pjaikumar): remove the line below when
// https://github.com/grpc/grpc/issues/18080 has been fixed.
gpr_setenv("GRPC_DNS_RESOLVER", "native");
const auto result = RUN_ALL_TESTS(); const auto result = RUN_ALL_TESTS();
return result; return result;
} }

@ -170,4 +170,5 @@ cc_library(
visibility = [ visibility = [
"//visibility:public", "//visibility:public",
], ],
alwayslink = 1,
) )

Loading…
Cancel
Save