We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--target=wasm32-wasip2
1 parent 261630e commit 52a7375Copy full SHA for 52a7375
1 file changed
Tools/wasm/wasi-env
@@ -40,9 +40,9 @@ if ! test -x "${WASI_SDK_PATH}/bin/clang"; then
40
exit 2
41
fi
42
43
-CC="${WASI_SDK_PATH}/bin/clang"
44
-CPP="${WASI_SDK_PATH}/bin/clang-cpp"
45
-CXX="${WASI_SDK_PATH}/bin/clang++"
+CC="${WASI_SDK_PATH}/bin/clang --target=wasm32-wasip2"
+CPP="${WASI_SDK_PATH}/bin/clang-cpp --target=wasm32-wasip2"
+CXX="${WASI_SDK_PATH}/bin/clang++ --target=wasm32-wasip2"
46
47
# --sysroot is required if WASI-SDK is not installed in /opt/wasi-sdk.
48
if test "${WASI_SDK_PATH}" != "/opt/wasi-sdk"; then
0 commit comments