File tree Expand file tree Collapse file tree 2 files changed +13
-25
lines changed Expand file tree Collapse file tree 2 files changed +13
-25
lines changed Original file line number Diff line number Diff line change @@ -371,22 +371,24 @@ ${libicu_data_a}
371
371
DESTINATION "lib/swift_static/${lowercase_sdk} "
372
372
COMPONENT stdlib )
373
373
elseif ("${sdk} " STREQUAL "WASI" )
374
- set (linkfile_src "${SWIFT_SOURCE_DIR} /utils/webassembly/static-stdlib-args.lnk" )
375
374
set (linkfile "${lowercase_sdk} /static-stdlib-args.lnk" )
376
- add_custom_command_target (swift_static_stdlib_${sdk}_args
377
- COMMAND
378
- "${CMAKE_COMMAND} " -E copy
379
- "${linkfile_src} "
380
- "${SWIFTSTATICLIB_DIR} /${linkfile} "
381
- OUTPUT
382
- "${SWIFTSTATICLIB_DIR} /${linkfile} "
383
- DEPENDS
384
- "${linkfile_src} " )
375
+ file (WRITE "${SWIFTSTATICLIB_DIR} /${linkfile} " "
376
+ -ldl
377
+ -latomic
378
+ -lswiftWasiPthread
379
+ -lswiftCore
380
+ -lswiftImageInspectionShared
381
+ -licuuc
382
+ -licudata
383
+ -lstdc++
384
+ -lm
385
+ -Xlinker --exclude-libs
386
+ -Xlinker ALL" )
385
387
386
- list (APPEND static_stdlib_lnk_file_list ${swift_static_stdlib_${sdk}_args} )
387
388
swift_install_in_component (FILES "${SWIFTSTATICLIB_DIR} /${linkfile} "
388
389
DESTINATION "lib/swift_static/${lowercase_sdk} "
389
390
COMPONENT stdlib )
391
+
390
392
set (swift_icu_libs_wasi_list )
391
393
set (icu_modules UC I18N DATA )
392
394
foreach (module IN LISTS icu_modules )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments