Skip to content

Commit db7b7a7

Browse files
committed
SourceKit: the swift-lang requires the standard library
The swift-lang swift module requires the standard library to be built and is part of the standard library component. Ensure that this is taken into consideration when we attempt to build it.
1 parent 4bca887 commit db7b7a7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/SourceKit/tools/swift-lang/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if(NOT SWIFT_SOURCEKIT_USE_INPROC_LIBRARY)
1+
if(NOT SWIFT_SOURCEKIT_USE_INPROC_LIBRARY AND SWIFT_BUILD_STDLIB)
22
set(EXTRA_COMPILE_FLAGS "-F" "${SWIFT_LIBRARY_OUTPUT_INTDIR}")
33
set(SOURCEKITD_LINK_LIBS sourcekitd)
44
set(INSTALLED_COMP sourcekit-xpc-service)
@@ -13,10 +13,9 @@ if(NOT SWIFT_SOURCEKIT_USE_INPROC_LIBRARY)
1313
UIDs.swift.gyb
1414

1515
DEPENDS ${DEPENDS_LIST}
16-
SWIFT_MODULE_DEPENDS_OSX Darwin
1716
PRIVATE_LINK_LIBRARIES ${SOURCEKITD_LINK_LIBS}
1817
SWIFT_COMPILE_FLAGS ${EXTRA_COMPILE_FLAGS}
1918
INSTALL_IN_COMPONENT ${INSTALLED_COMP}
2019
TARGET_SDKS ${SOURCEKIT_DEFAULT_TARGET_SDK}
2120
IS_STDLIB)
22-
endif()
21+
endif()

0 commit comments

Comments
 (0)