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