We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent facd074 commit 7db7da0Copy full SHA for 7db7da0
stdlib/public/runtime/CMakeLists.txt
@@ -302,6 +302,23 @@ ${concurrency_libs}
302
DESTINATION "lib/swift_static/${lowercase_sdk}"
303
COMPONENT stdlib)
304
elseif("${sdk}" STREQUAL "WASI")
305
+ set(linkfile "${lowercase_sdk}/static-stdlib-args.lnk")
306
+ file(WRITE "${SWIFTSTATICLIB_DIR}/${linkfile}" "
307
+-ldl
308
+-latomic
309
+-lswiftWasiPthread
310
+-lswiftCore
311
+-licuuc
312
+-licudata
313
+-lstdc++
314
+-lm
315
+-Xlinker --exclude-libs
316
+-Xlinker ALL")
317
+
318
+ swift_install_in_component(FILES "${SWIFTSTATICLIB_DIR}/${linkfile}"
319
+ DESTINATION "lib/swift_static/${lowercase_sdk}"
320
+ COMPONENT stdlib)
321
322
set(swift_icu_libs_wasi_list)
323
set(icu_modules UC I18N DATA)
324
foreach(module IN LISTS icu_modules)
0 commit comments