Skip to content

Commit 94c2be8

Browse files
authored
Merge pull request #68561 from etcwilde/ewilde/add-missing-clang-dep-edge
Add dependency edge between dispatch and clang
2 parents 7014fcf + 5ac32e7 commit 94c2be8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/modules/Libdispatch.cmake

+4
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ foreach(sdk ${DISPATCH_SDKS})
145145

146146
ExternalProject_Get_Property("${LIBDISPATCH_VARIANT_NAME}" install_dir)
147147

148+
if(NOT SWIFT_BUILT_STANDALONE AND NOT "${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
149+
add_dependencies("${LIBDISPATCH_VARIANT_NAME}" clang)
150+
endif()
151+
148152
# CMake does not like the addition of INTERFACE_INCLUDE_DIRECTORIES without
149153
# the directory existing. Just create the location which will be populated
150154
# during the installation.

0 commit comments

Comments
 (0)