We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9d476e + a0ca6de commit 93184c5Copy full SHA for 93184c5
tools/SourceKit/tools/swift-lang/CMakeLists.txt
@@ -4,7 +4,16 @@ if(NOT SWIFT_SOURCEKIT_USE_INPROC_LIBRARY AND SWIFT_BUILD_STDLIB)
4
set(INSTALLED_COMP sourcekit-xpc-service)
5
set(DEPENDS_LIST "sourcekitd-test")
6
7
- add_swift_target_library(swiftSwiftLang SHARED
+ # The build type of swiftlang should agree with stdlib
8
+ set(SWIFT_LANG_LIBRARY_BUILD_TYPES)
9
+ if(SWIFT_BUILD_DYNAMIC_STDLIB)
10
+ list(APPEND SWIFT_LANG_LIBRARY_BUILD_TYPES SHARED)
11
+ endif()
12
+ if(SWIFT_BUILD_STATIC_STDLIB)
13
+ list(APPEND SWIFT_LANG_LIBRARY_BUILD_TYPES STATIC)
14
15
+
16
+ add_swift_target_library(swiftSwiftLang ${SWIFT_LANG_LIBRARY_BUILD_TYPES}
17
SwiftLang.swift
18
SourceKitdClient.swift
19
SourceKitdRequest.swift
0 commit comments