Skip to content

Commit 80699b8

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 5a30b27 commit 80699b8

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
@@ -2151,6 +2151,7 @@ function(_add_swift_executable_single name)
21512151
"${SWIFTEXE_SINGLE_LINK_FAT_LIBRARIES}"
21522152
"-${SWIFT_SDK_${SWIFTEXE_SINGLE_SDK}_LIB_SUBDIR}-${SWIFTEXE_SINGLE_ARCHITECTURE}"
21532153
SWIFTEXE_SINGLE_LINK_FAT_LIBRARIES_TARGETS)
2154+
set(SWIFTEXE_SINGLE_LINK_FAT_LIBRARIES ${SWIFTEXE_SINGLE_LINK_FAT_LIBRARIES_TARGETS})
21542155
endif()
21552156

21562157
handle_swift_sources(

0 commit comments

Comments
 (0)