Skip to content

Commit f5f472b

Browse files
kateinoigakukunAnka
authored andcommitted
[static-stdlib] Add static executable support for WASI target
This patch adds static-executble-args.lnk file for WASI target
1 parent ea6135b commit f5f472b

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
@@ -114,7 +114,7 @@ if(SWIFT_BUILD_STATIC_STDLIB)
114114
set(static_binary_lnk_file_list)
115115

116116
foreach(sdk ${SWIFT_SDKS})
117-
if(NOT "${sdk}" STREQUAL "LINUX")
117+
if(NOT "${sdk}" STREQUAL "LINUX" AND NOT "${sdk}" STREQUAL "WASI")
118118
continue()
119119
endif()
120120

0 commit comments

Comments
 (0)