Skip to content

Commit 3756dca

Browse files
committed
[SourceKit] don't build libdispatch shared library twice, other than on Mac/Windows
1 parent 061c6d0 commit 3756dca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,8 @@ if (LLVM_ENABLE_DOXYGEN)
941941
message(STATUS "Doxygen: enabled")
942942
endif()
943943

944-
if(SWIFT_BUILD_SYNTAXPARSERLIB OR SWIFT_BUILD_SOURCEKIT)
944+
if((SWIFT_BUILD_SYNTAXPARSERLIB OR SWIFT_BUILD_SOURCEKIT) AND
945+
${SWIFT_HOST_VARIANT_SDK} MATCHES "OSX|WINDOWS")
945946
if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
946947
if(CMAKE_C_COMPILER_ID STREQUAL Clang AND
947948
CMAKE_C_COMPILER_VERSION VERSION_GREATER 3.8

0 commit comments

Comments
 (0)