File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -105,18 +105,19 @@ set(sdk "${SWIFT_HOST_VARIANT_SDK}")
105105if (SWIFT_BUILD_STATIC_STDLIB AND "${sdk} " STREQUAL "LINUX" )
106106 set (static_binary_lnk_file_list)
107107 string (TOLOWER "${sdk} " lowercase_sdk)
108+ set (static_binary_lnk_src "${SWIFT_SOURCE_DIR} /stdlib/public/Resources/${lowercase_sdk} /static-executable-args.lnk" )
108109
109110 # Generate the static-executable-args.lnk file used for ELF systems (eg linux)
110111 set (linkfile "${lowercase_sdk} /static-executable-args.lnk" )
111112 add_custom_command_target(swift_static_binary_${sdk} _args
112113 COMMAND
113114 "${CMAKE_COMMAND} " -E copy
114- "${SWIFT_SOURCE_DIR} /utils/static-executable-args.lnk "
115+ "${static_binary_lnk_src} "
115116 "${SWIFTSTATICLIB_DIR} /${linkfile} "
116117 OUTPUT
117118 "${SWIFTSTATICLIB_DIR} /${linkfile} "
118119 DEPENDS
119- "${SWIFT_SOURCE_DIR} /utils/static-executable-args.lnk " )
120+ "${static_binary_lnk_src} " )
120121
121122 list (APPEND static_binary_lnk_file_list ${swift_static_binary_${sdk} _args})
122123 swift_install_in_component(FILES "${SWIFTSTATICLIB_DIR} /${linkfile} "
You can’t perform that action at this time.
0 commit comments