We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ad55fd1 + 3add677 commit 0b0025dCopy full SHA for 0b0025d
stdlib/private/BlocksRuntimeStubs/CMakeLists.txt
@@ -25,6 +25,15 @@ foreach(SDK ${SWIFT_SDKS})
25
LIBRARY_OUTPUT_DIRECTORY ${test_bin_dir}
26
RUNTIME_OUTPUT_DIRECTORY ${test_bin_dir}
27
OUTPUT_NAME BlocksRuntime)
28
+
29
+ # When built in a unified build, ensure that we add a dependency on the
30
+ # compiler to serialize this behind the compiler. Otherwise, we would
31
+ # attempt to build this before the compiler is ready, which breaks the
32
+ # build.
33
+ if(NOT SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER AND NOT BUILD_STANDALONE AND
34
+ TARGET clang)
35
+ add_dependencies(BlocksRuntimeStub${VARIANT_SUFFIX} clang)
36
+ endif()
37
endforeach()
38
39
0 commit comments