Skip to content

Commit 9b7a6f0

Browse files
authored
Merge pull request #61258 from DougGregor/cmake-bootstrap-phase-0
[CMake] Bootstrap stage 0 also needs the host Swift libraries
2 parents e03c568 + 328fcdf commit 9b7a6f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ function(_add_swift_runtime_link_flags target relpath_to_lib_dir bootstrapping)
575575
# For the "end step" of bootstrapping configurations on Darwin, need to be
576576
# able to fall back to the SDK directory for libswiftCore et al.
577577
if (BOOTSTRAPPING_MODE MATCHES "BOOTSTRAPPING.*")
578-
if (bootstrapping STREQUAL "")
578+
if (NOT "${bootstrapping}" STREQUAL "1")
579579
if(${SWIFT_HOST_VARIANT_SDK} IN_LIST SWIFT_DARWIN_PLATFORMS)
580580
target_link_directories(${target} PRIVATE "${sdk_dir}")
581581
endif()

0 commit comments

Comments
 (0)