Skip to content

Commit 5986274

Browse files
[static-stdlib] Add static executable support for WASI target
This patch adds static-executble-args.lnk file for WASI target
1 parent d537069 commit 5986274

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
@@ -106,7 +106,7 @@ if(SWIFT_BUILD_STATIC_STDLIB)
106106
set(static_binary_lnk_file_list)
107107

108108
foreach(sdk ${SWIFT_SDKS})
109-
if(NOT "${sdk}" STREQUAL "LINUX")
109+
if(NOT "${sdk}" STREQUAL "LINUX" AND NOT "${sdk}" STREQUAL "WASI")
110110
continue()
111111
endif()
112112

0 commit comments

Comments
 (0)