Skip to content

Commit 98eadc8

Browse files
committed
sourcekit/cmake: build swiftlang only when overlay is built
This is because swiftLang module needs foundation to build.
1 parent b6517c5 commit 98eadc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if(NOT SWIFT_SOURCEKIT_USE_INPROC_LIBRARY AND SWIFT_BUILD_STDLIB)
1+
if(NOT SWIFT_SOURCEKIT_USE_INPROC_LIBRARY AND SWIFT_BUILD_STDLIB AND SWIFT_BUILD_SDK_OVERLAY)
22
set(EXTRA_COMPILE_FLAGS "-F" "${SWIFT_LIBRARY_OUTPUT_INTDIR}")
33
set(SOURCEKITD_LINK_LIBS sourcekitd)
44
set(INSTALLED_COMP sourcekit-xpc-service)

0 commit comments

Comments
 (0)