Skip to content

Commit c915695

Browse files
committed
---
yaml --- r: 346841 b: refs/heads/master c: 93184c5 h: refs/heads/master i: 346839: 05de8dd
1 parent 29cd2ba commit c915695

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: b9d476e39c75ea121e76754f2baf91f0559d76f6
2+
refs/heads/master: 93184c549a7ab969f877dd112a98f2a09f855807
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@ if(NOT SWIFT_SOURCEKIT_USE_INPROC_LIBRARY AND SWIFT_BUILD_STDLIB)
44
set(INSTALLED_COMP sourcekit-xpc-service)
55
set(DEPENDS_LIST "sourcekitd-test")
66

7-
add_swift_target_library(swiftSwiftLang SHARED
7+
# 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+
endif()
15+
16+
add_swift_target_library(swiftSwiftLang ${SWIFT_LANG_LIBRARY_BUILD_TYPES}
817
SwiftLang.swift
918
SourceKitdClient.swift
1019
SourceKitdRequest.swift

0 commit comments

Comments
 (0)