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 1117b0c commit ab52855Copy full SHA for ab52855
stdlib/public/runtime/CMakeLists.txt
@@ -296,6 +296,23 @@ ${concurrency_libs}
296
DESTINATION "lib/swift_static/${lowercase_sdk}"
297
COMPONENT stdlib)
298
elseif("${sdk}" STREQUAL "WASI")
299
+ set(linkfile "${lowercase_sdk}/static-stdlib-args.lnk")
300
+ file(WRITE "${SWIFTSTATICLIB_DIR}/${linkfile}" "
301
+-ldl
302
+-latomic
303
+-lswiftWasiPthread
304
+-lswiftCore
305
+-licuuc
306
+-licudata
307
+-lstdc++
308
+-lm
309
+-Xlinker --exclude-libs
310
+-Xlinker ALL")
311
+
312
+ swift_install_in_component(FILES "${SWIFTSTATICLIB_DIR}/${linkfile}"
313
+ DESTINATION "lib/swift_static/${lowercase_sdk}"
314
+ COMPONENT stdlib)
315
316
set(swift_icu_libs_wasi_list)
317
set(icu_modules UC I18N DATA)
318
foreach(module IN LISTS icu_modules)
0 commit comments