Skip to content

Commit 88076d9

Browse files
zhuoweikateinoigakukun
authored andcommitted
WebAssembly: add a sample script for linking a wasm file
1 parent fc87f70 commit 88076d9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

linkPlease.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
# Copy to ../build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/bin
3+
exec /home/zhuowei/wasi-sdk/bin/wasm-ld --error-limit=0 -o hello.wasm \
4+
/home/zhuowei/wasi-sdk/share/sysroot/lib/wasm32-wasi/crt1.o \
5+
hello.o \
6+
-L../lib/swift_static/wasm/wasm32 \
7+
-L../lib/swift/wasm/wasm32 \
8+
-L/home/zhuowei/wasi-sdk/share/sysroot/lib/wasm32-wasi \
9+
-L/home/zhuowei/Documents/BuildICU/icu_out/lib \
10+
-lswiftCore \
11+
-lc -lc++ -lc++abi -lswiftImageInspectionShared \
12+
-licuuc -licudata \
13+
/home/zhuowei/wasi-sdk/lib/clang/8.0.0/lib/wasi/libclang_rt.builtins-wasm32.a /home/zhuowei/Documents/FakePthread/*.o --verbose

0 commit comments

Comments
 (0)