Skip to content

Commit 76f21b9

Browse files
committed
cmake: fix the library search path for bootstrapping libraries
Don't add the architecture to the library search path, because the output path also doesn't contain the architecture (for bootstrapping libraries) rdar://90025270
1 parent c3c9b1b commit 76f21b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ function(add_swift_target_library_single target name)
12141214

12151215
set(library_search_subdir "${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK}_LIB_SUBDIR}")
12161216
set(library_search_directories
1217-
"${lib_dir}/${SWIFTLIB_SINGLE_SUBDIR}"
1217+
"${lib_dir}/${output_sub_dir}"
12181218
"${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/../lib/swift/${SWIFTLIB_SINGLE_SUBDIR}"
12191219
"${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/../lib/swift/${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK}_LIB_SUBDIR}")
12201220

0 commit comments

Comments
 (0)