Skip to content

Commit 52a7375

Browse files
committed
hard-code --target=wasm32-wasip2 for WASI
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
1 parent 261630e commit 52a7375

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Tools/wasm/wasi-env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ if ! test -x "${WASI_SDK_PATH}/bin/clang"; then
4040
exit 2
4141
fi
4242

43-
CC="${WASI_SDK_PATH}/bin/clang"
44-
CPP="${WASI_SDK_PATH}/bin/clang-cpp"
45-
CXX="${WASI_SDK_PATH}/bin/clang++"
43+
CC="${WASI_SDK_PATH}/bin/clang --target=wasm32-wasip2"
44+
CPP="${WASI_SDK_PATH}/bin/clang-cpp --target=wasm32-wasip2"
45+
CXX="${WASI_SDK_PATH}/bin/clang++ --target=wasm32-wasip2"
4646

4747
# --sysroot is required if WASI-SDK is not installed in /opt/wasi-sdk.
4848
if test "${WASI_SDK_PATH}" != "/opt/wasi-sdk"; then

0 commit comments

Comments
 (0)