Skip to content

Commit a259eb5

Browse files
authored
Merge pull request #27979 from compnerd/dependencies
build: add a dependency on clang
2 parents 43d2904 + 7a2a0e7 commit a259eb5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1991,6 +1991,9 @@ function(add_swift_target_library name)
19911991
DEPLOYMENT_VERSION_WATCHOS "${SWIFTLIB_DEPLOYMENT_VERSION_WATCHOS}"
19921992
GYB_SOURCES ${SWIFTLIB_GYB_SOURCES}
19931993
)
1994+
if(NOT SWIFT_BUILT_STANDALONE AND NOT CMAKE_C_COMPILER MATCHES Clang)
1995+
add_dependencies(${VARIANT_NAME} clang)
1996+
endif()
19941997

19951998
if(sdk STREQUAL WINDOWS)
19961999
if(SWIFT_COMPILER_IS_MSVC_LIKE)

0 commit comments

Comments
 (0)