Skip to content

Commit 029008b

Browse files
kateinoigakukunrunner
authored andcommitted
[static-stdlib] Add static executable support for WASI target
This patch adds static-executble-args.lnk file for WASI target
1 parent ddd78a1 commit 029008b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-static
2+
-lswiftSwiftOnoneSupport
3+
-ldl
4+
-lstdc++
5+
-lm
6+
-lwasi-emulated-mman
7+
-lwasi-emulated-signal
8+
-lwasi-emulated-process-clocks
9+
-Xlinker --error-limit=0
10+
-Xlinker --no-gc-sections
11+
-Xlinker --threads=1

stdlib/public/runtime/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ if(SWIFT_BUILD_STATIC_STDLIB)
113113
set(static_binary_lnk_file_list)
114114

115115
foreach(sdk ${SWIFT_SDKS})
116-
if(NOT "${sdk}" STREQUAL "LINUX")
116+
if(NOT "${sdk}" STREQUAL "LINUX" AND NOT "${sdk}" STREQUAL "WASI")
117117
continue()
118118
endif()
119119

0 commit comments

Comments
 (0)