Skip to content

Commit 5a9a469

Browse files
committed
Update to wasi-sdk 27, for test compilation
Also, pass --target=wasm32-wasip1 to build.sh, given that the existing tests target that version.
1 parent 0603fbe commit 5a9a469

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/compile-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
matrix:
8383
os: [ubuntu-latest, macos-latest, windows-latest, windows-11-arm]
8484
env:
85-
WASI_VERSION: 17
85+
WASI_VERSION: 27
8686
steps:
8787
- name: Check out repository code
8888
uses: actions/checkout@v3

tests/c/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ for input in testsuite/*.c; do
88

99
if [ "$input" -nt "$output" ]; then
1010
echo "Compiling $input"
11-
$CC "$input" -o "$output"
11+
$CC --target=wasm32-wasip1 "$input" -o "$output"
1212
fi
1313
done

0 commit comments

Comments
 (0)