File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1199,8 +1199,6 @@ function(add_swift_library name)
1199
1199
1200
1200
if (NOT SWIFTLIB_TARGET_LIBRARY )
1201
1201
set (SWIFTLIB_INSTALL_IN_COMPONENT dev )
1202
- elseif (NOT SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER AND NOT SWIFT_BUILT_STANDALONE )
1203
- list (APPEND SWIFTLIB_DEPENDS clang )
1204
1202
endif ()
1205
1203
1206
1204
# If target SDKs are not specified, build for all known SDKs.
@@ -1258,6 +1256,10 @@ function(add_swift_library name)
1258
1256
endif ()
1259
1257
1260
1258
if (SWIFTLIB_TARGET_LIBRARY )
1259
+ if (NOT SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER )
1260
+ list (APPEND SWIFTLIB_DEPENDS clang )
1261
+ endif ()
1262
+
1261
1263
# If we are building this library for targets, loop through the various
1262
1264
# SDKs building the variants of this library.
1263
1265
list_intersect (
You can’t perform that action at this time.
0 commit comments