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