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