Skip to content

Commit 3c70f5c

Browse files
kateinoigakukunrunner
authored andcommitted
[static-stdlib] Move static-executable-args.lnk under stdlib/public/Resources/linux
This is a preparatory change for adding a static executable support for WASI
1 parent d3aa2a7 commit 3c70f5c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

stdlib/public/runtime/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,19 @@ set(sdk "${SWIFT_HOST_VARIANT_SDK}")
111111
if(SWIFT_BUILD_STATIC_STDLIB AND "${sdk}" STREQUAL "LINUX")
112112
set(static_binary_lnk_file_list)
113113
string(TOLOWER "${sdk}" lowercase_sdk)
114+
set(static_binary_lnk_src "${SWIFT_SOURCE_DIR}/stdlib/public/Resources/${lowercase_sdk}/static-executable-args.lnk")
114115

115116
# Generate the static-executable-args.lnk file used for ELF systems (eg linux)
116117
set(linkfile "${lowercase_sdk}/static-executable-args.lnk")
117118
add_custom_command_target(swift_static_binary_${sdk}_args
118119
COMMAND
119120
"${CMAKE_COMMAND}" -E copy
120-
"${SWIFT_SOURCE_DIR}/utils/static-executable-args.lnk"
121+
"${static_binary_lnk_src}"
121122
"${SWIFTSTATICLIB_DIR}/${linkfile}"
122123
OUTPUT
123124
"${SWIFTSTATICLIB_DIR}/${linkfile}"
124125
DEPENDS
125-
"${SWIFT_SOURCE_DIR}/utils/static-executable-args.lnk")
126+
"${static_binary_lnk_src}")
126127

127128
list(APPEND static_binary_lnk_file_list ${swift_static_binary_${sdk}_args})
128129
swift_install_in_component(FILES "${SWIFTSTATICLIB_DIR}/${linkfile}"

0 commit comments

Comments
 (0)