Skip to content

Commit aaa9d6c

Browse files
committed
Fix accidental duplication of library names.
In AddSwiftStdlib.cmake, we're adding library names twice for target executables, once with the path and once without. This appears to break things on Windows when building the SDKs. rdar://106104132
1 parent 2d0b78a commit aaa9d6c

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
@@ -2772,7 +2772,7 @@ function(add_swift_target_executable name)
27722772
# Swift compiles depend on swift modules, while links depend on
27732773
# linked libraries. Find targets for both of these here.
27742774
set(swiftexe_module_dependency_targets)
2775-
set(swiftexe_link_libraries_targets ${SWIFTEXE_TARGET_LINK_LIBRARIES})
2775+
set(swiftexe_link_libraries_targets)
27762776
foreach(mod ${swiftexe_module_depends_flattened})
27772777
if(DEFINED maccatalyst_build_flavor)
27782778
if(maccatalyst_build_flavor STREQUAL "zippered")

0 commit comments

Comments
 (0)