Skip to content

Commit c18d6bb

Browse files
committed
Runtimes: remove the explicit linking in the build system
These libraries are now implicitly explicitly linked. The source files include `#pragma comment(lib, ...)` to include the autolink directives to properly handle the dependency propagation to ensure static linking is sufficiently closed.
1 parent 3787044 commit c18d6bb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Runtimes/Core/core/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,7 @@ if(NOT POLICY CMP0157)
319319
$<TARGET_OBJECTS:swiftThreading>)
320320
endif()
321321

322-
if(WIN32)
323-
target_link_libraries(swiftCore PRIVATE shell32 DbgHelp Synchronization)
324-
elseif(NOT APPLE AND NOT LINUX AND NOT ANDROID AND UNIX)
322+
if(NOT ANDROID AND NOT APPLE AND NOT LINUX AND NOT WIN32 AND UNIX)
325323
find_library(EXECINFO_LIBRARY execinfo)
326324
target_link_libraries(swiftCore PRIVATE "${EXECINFO_LIBRARY}")
327325
endif()

0 commit comments

Comments
 (0)