Skip to content

Commit c43f60a

Browse files
authored
Use the correct platform toolchain folder... (#58416)
...when bootstrapping with hosttools. This would align with how the SDK path is calculated. Addresses rdar://92298536
1 parent 11dd84e commit c43f60a

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
@@ -707,7 +707,7 @@ function(add_swift_host_tool executable)
707707
if(BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS")
708708
# Add in the toolchain directory so we can grab compatibility libraries
709709
get_filename_component(TOOLCHAIN_BIN_DIR ${SWIFT_EXEC_FOR_SWIFT_MODULES} DIRECTORY)
710-
get_filename_component(TOOLCHAIN_LIB_DIR "${TOOLCHAIN_BIN_DIR}/../lib/swift/macosx" ABSOLUTE)
710+
get_filename_component(TOOLCHAIN_LIB_DIR "${TOOLCHAIN_BIN_DIR}/../lib/swift/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}" ABSOLUTE)
711711
target_link_directories(${executable} PUBLIC ${TOOLCHAIN_LIB_DIR})
712712
713713
# Add the SDK directory for the host platform.

0 commit comments

Comments
 (0)