We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd62dac commit 880739bCopy full SHA for 880739b
c/main_in_lib/build-wasi.sh
@@ -3,7 +3,8 @@
3
set -e
4
5
WASI_SDK=${WASI_SDK:-/opt/wasi-sdk-21.0}
6
-CC=${WASI_SDK}/bin/clang
+#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"
8
AR=${WASI_SDK}/bin/ar
9
10
./clean.sh
@@ -13,4 +14,5 @@ ${AR} crs libmain.a main.o
13
14
15
${CC} -c -o foo.o foo.c
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