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 7ae0c75 commit c3b12cdCopy full SHA for c3b12cd
stdlib/public/runtime/CMakeLists.txt
@@ -312,6 +312,23 @@ ${concurrency_libs}
312
DESTINATION "lib/swift_static/${lowercase_sdk}"
313
COMPONENT stdlib)
314
elseif("${sdk}" STREQUAL "WASI")
315
+ set(linkfile "${lowercase_sdk}/static-stdlib-args.lnk")
316
+ file(WRITE "${SWIFTSTATICLIB_DIR}/${linkfile}" "
317
+-ldl
318
+-latomic
319
+-lswiftWasiPthread
320
+-lswiftCore
321
+-licuuc
322
+-licudata
323
+-lstdc++
324
+-lm
325
+-Xlinker --exclude-libs
326
+-Xlinker ALL")
327
+
328
+ swift_install_in_component(FILES "${SWIFTSTATICLIB_DIR}/${linkfile}"
329
+ DESTINATION "lib/swift_static/${lowercase_sdk}"
330
+ COMPONENT stdlib)
331
332
set(swift_icu_libs_wasi_list)
333
set(icu_modules UC I18N DATA)
334
foreach(module IN LISTS icu_modules)
0 commit comments