Skip to content

Commit bd62dac

Browse files
committed
lto
1 parent 9d53895 commit bd62dac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

wasm/longjmp/test-libsetjmp.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@ set -e
44

55
##CC=/opt/wasi-sdk-21.0/bin/clang
66
CC="/Volumes/PortableSSD/llvm/build/bin/clang --sysroot /opt/wasi-sdk-24.0/share/wasi-sysroot -resource-dir /Volumes/PortableSSD/llvm/llvm/lib/clang/17"
7+
#CC=/Volumes/PortableSSD/git/wasi-sdk/build/install/bin/clang
78
# binaryen with https://github.com/WebAssembly/binaryen/pull/6210
89
WASM_OPT=~/git/wasm/binaryen/b/bin/wasm-opt
910
# toywasm v36.0.0 or later with TOYWASM_ENABLE_WASM_EXCEPTION_HANDLING=ON
1011
TOYWASM=toywasm
1112

1213
${CC} \
14+
-flto=full \
1315
--target=wasm32-wasi \
1416
-mllvm -wasm-enable-sjlj \
17+
-Wl,-mllvm,-wasm-enable-sjlj \
1518
-DUSE_SETJMP_H \
16-
-Os \
19+
-Os -v \
20+
-Wl,-mllvm,-debug \
1721
a.c -lsetjmp
1822

1923
${WASM_OPT} \

0 commit comments

Comments
 (0)