Skip to content

Commit 880739b

Browse files
committed
try patched clang
cf. llvm/llvm-project#104755
1 parent bd62dac commit 880739b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

c/main_in_lib/build-wasi.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
set -e
44

55
WASI_SDK=${WASI_SDK:-/opt/wasi-sdk-21.0}
6-
CC=${WASI_SDK}/bin/clang
6+
#CC="${WASI_SDK}/bin/clang --sysroot ${HOME}/git/wasi-libc/sysroot"
7+
CC="/Volumes/PortableSSD/llvm/build/bin/clang --sysroot ${HOME}/git/wasi-libc/sysroot -resource-dir /Users/yamamoto/wasm/wasi-sdk-24.0-x86_64-macos/lib/clang/18"
78
AR=${WASI_SDK}/bin/ar
89

910
./clean.sh
@@ -13,4 +14,5 @@ ${AR} crs libmain.a main.o
1314

1415
${CC} -c -o foo.o foo.c
1516

16-
${CC} foo.o -L. -lmain
17+
${CC} -v foo.o -L. -lmain
18+
#-Xlinker -no-gc-sections #$(${CC} --print-file-name crt2-command.o)

0 commit comments

Comments
 (0)