Skip to content

Commit 30bcdd9

Browse files
authored
[stdlib] Add dependency from static-executable-args.lnk to stdlib (#35906)
The file static-executable-args.lnk was added to the stdlib install component, but stdlib didn't depend on it, so when invoking install-stdlib or install-swift-components, the file was not being generated. Because of the magic target marked as `ALL`, when one built all the targets, and later issued a `install-*` target, the file was there by a lucky coincidence. The change only creates that dependency, so a call to install the stdlib will also create this file.
1 parent 9ef86bd commit 30bcdd9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/runtime/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ if(SWIFT_BUILD_STATIC_STDLIB AND "${sdk}" STREQUAL "LINUX")
102102
swift_install_in_component(FILES "${SWIFTSTATICLIB_DIR}/${linkfile}"
103103
DESTINATION "lib/swift_static/${lowercase_sdk}"
104104
COMPONENT stdlib)
105+
add_dependencies(stdlib ${static_binary_lnk_file_list})
105106
add_custom_target(static_binary_magic ALL DEPENDS ${static_binary_lnk_file_list})
106107
endif()
107108

0 commit comments

Comments
 (0)