Fix build test of Zipkin exporter on Windows#1177
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1177 +/- ##
=======================================
Coverage 93.29% 93.29%
=======================================
Files 174 174
Lines 6404 6404
=======================================
Hits 5974 5974
Misses 430 430
|
| PATTERN "recordable.h" EXCLUDE) | ||
|
|
||
| if(BUILD_TESTING) | ||
| add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1) |
There was a problem hiding this comment.
Why is this required ? Just trying to understand what fix we are going for Zipkin.
There was a problem hiding this comment.
There is some unresolved global lock variable in gtest/gmock reported if built without this flag.
|
|
||
| #ifndef HAVE_CPP_STDLIB | ||
|
|
||
| # define _WINSOCKAPI_ // stops including winsock.h |
There was a problem hiding this comment.
Not related to the PR:
This is not part of CMake test for Windows CI.
There was a problem hiding this comment.
I moved this define to spin lock header which includes windows.h as well. So this should be unnecessary. Let me know you prefer keep this define here.
There was a problem hiding this comment.
thanks, spin lock header is actually the right place to have the define.
Changes
Zipkin exporter doesn't build on Windows but Jaeger exporter builds fine. This PR ports the necessary Jaeger build scripts to Zipkin exporter as well.
For significant contributions please make sure you have completed the following items:
CHANGELOG.mdupdated for non-trivial changes