From b34d98fbd47834845e3f9cdaa4aa706f1aa4eddb Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Wed, 17 Jan 2024 13:19:40 -0800 Subject: [PATCH] [CI] Fix sanity test fail (#35584) Closes #35584 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35584 from veblush:fix-sanity 379c8df20f2fec95001deb04766c706830922c50 PiperOrigin-RevId: 599268449 --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8eedf5047eb..5bf83b69de7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8441,6 +8441,14 @@ add_executable(call_filters_test third_party/upb/upb/wire/eps_copy_input_stream.c third_party/upb/upb/wire/reader.c ) +if(WIN32 AND MSVC) + if(BUILD_SHARED_LIBS) + target_compile_definitions(call_filters_test + PRIVATE + "GPR_DLL_IMPORTS" + ) + endif() +endif() target_compile_features(call_filters_test PUBLIC cxx_std_14) target_include_directories(call_filters_test PRIVATE