Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Apr 16, 2024
1 parent cdc84da commit a1740f8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion docker/test/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -556,10 +556,17 @@ EOF
*-wasi*)
[[ -f "${toolchain_dir}/bin/wasmtime" ]] || cp "$(type -P "wasmtime")" "${toolchain_dir}/bin"
runner="${RUST_TARGET}-runner"
wasi_options=''
case "${RUST_TARGET}" in
*-threads) wasi_options+=' -S threads=y'
esac
case "${RUST_TARGET}" in
*-wasip2*) wasi_options+=' -S preview2=y'
esac
cat >"${toolchain_dir}/bin/${runner}" <<EOF
#!/bin/sh
set -eu
exec wasmtime run -W all-proposals "\$@"
exec wasmtime run -W all-proposals${wasi_options} "\$@"
EOF
chmod +x "${toolchain_dir}/bin/${runner}"
cat "${toolchain_dir}/bin/${runner}"
Expand Down
2 changes: 1 addition & 1 deletion docker/test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ case "${RUST_TARGET}" in
# TODO(aarch64-unknown-openbsd): clang segfault
# TODO(sparc64-unknown-openbsd): error: undefined symbol: main
# TODO(*-wasip1-threads): not output
arm*-android* | thumb*-android* | i686-*-android* | aarch64-unknown-openbsd | sparc64-unknown-openbsd| *-wasip1-threads) no_cpp=1 ;;
arm*-android* | thumb*-android* | i686-*-android* | aarch64-unknown-openbsd | sparc64-unknown-openbsd | *-wasip1-threads) no_cpp=1 ;;
# TODO(redox): /x86_64-unknown-redox/x86_64-unknown-redox/include/bits/wchar.h:12:28: error: cannot combine with previous 'int' declaration specifier
*-redox*)
case "${cc}" in
Expand Down
4 changes: 2 additions & 2 deletions tools/target-list-shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ windows_gnu_targets=(
)
# WASI
wasi_targets=(
wasm32-wasi
wasm32-wasip1
# wasm32-wasi
# wasm32-wasip1
wasm32-wasip1-threads
wasm32-wasip2 # tier3
)
Expand Down

0 comments on commit a1740f8

Please sign in to comment.