Skip to content

Commit 453a790

Browse files
author
Chris B
authored
Merge pull request #4991 from llvm-beanz/cleanup-PR4966
[CMake] Updates based on post-merge feedback on PR4966
2 parents 9b2c647 + 239df58 commit 453a790

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,8 +1199,6 @@ function(add_swift_library name)
11991199

12001200
if(NOT SWIFTLIB_TARGET_LIBRARY)
12011201
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)
12041202
endif()
12051203

12061204
# If target SDKs are not specified, build for all known SDKs.
@@ -1258,6 +1256,10 @@ function(add_swift_library name)
12581256
endif()
12591257

12601258
if(SWIFTLIB_TARGET_LIBRARY)
1259+
if(NOT SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER)
1260+
list(APPEND SWIFTLIB_DEPENDS clang)
1261+
endif()
1262+
12611263
# If we are building this library for targets, loop through the various
12621264
# SDKs building the variants of this library.
12631265
list_intersect(

0 commit comments

Comments
 (0)