Skip to content

Commit e3b699b

Browse files
committed
build: overwrite the fat libraries with the targets
Ensure that the use the target specific names for the fat libraries for non-MachO targets which do not support fat libraries. This fixes the windows build.
1 parent a127d1b commit e3b699b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,6 +2160,7 @@ function(_add_swift_executable_single name)
21602160
"${SWIFTEXE_SINGLE_LINK_FAT_LIBRARIES}"
21612161
"-${SWIFT_SDK_${SWIFTEXE_SINGLE_SDK}_LIB_SUBDIR}-${SWIFTEXE_SINGLE_ARCHITECTURE}"
21622162
SWIFTEXE_SINGLE_LINK_FAT_LIBRARIES_TARGETS)
2163+
set(SWIFTEXE_SINGLE_LINK_FAT_LIBRARIES ${SWIFTEXE_SINGLE_LINK_FAT_LIBRARIES_TARGETS})
21632164
endif()
21642165

21652166
handle_swift_sources(

0 commit comments

Comments
 (0)