Skip to content

Commit 944f713

Browse files
committed
[Threading][Windows] Link the unit test against Synchronization.lib
We need to link the threading unit test against Synchronization.lib to pick up the Win32 APIs we're using. rdar://90776105
1 parent b9a296d commit 944f713

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

unittests/Threading/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ target_link_libraries(SwiftThreadingTests
1010
swiftThreading${SWIFT_PRIMARY_VARIANT_SUFFIX}
1111
swiftCore${SWIFT_PRIMARY_VARIANT_SUFFIX}
1212
)
13+
14+
if(CMAKE_SYSTEM_NAME STREQUAL Windows)
15+
target_link_libraries(SwiftThreadingTests PRIVATE Synchronization)
16+
endif()

0 commit comments

Comments
 (0)