Skip to content

Commit cc224e1

Browse files
committed
Modify a CMake rule: executables generated by Swift depend on swiftSwiftOnoneSupport.
This makes sure that such executables are only built after swiftSwiftOnoneSupport is built.
1 parent f06cedc commit cc224e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,6 +1859,8 @@ function(add_swift_target_executable name)
18591859

18601860
# All Swift executables depend on the standard library.
18611861
list(APPEND SWIFTEXE_TARGET_LINK_FAT_LIBRARIES swiftCore)
1862+
# All Swift executables depend on the swiftSwiftOnoneSupport library.
1863+
list(APPEND SWIFTEXE_TARGET_DEPENDS swiftSwiftOnoneSupport)
18621864

18631865
if(NOT "${SWIFT_BUILD_STDLIB}")
18641866
list(REMOVE_ITEM SWIFTEXE_TARGET_LINK_FAT_LIBRARIES

0 commit comments

Comments
 (0)