Skip to content

Commit 7e2c6c0

Browse files
committed
use the latest wasi-libc as samples/wasi-threads relies on it
1 parent 0a3e732 commit 7e2c6c0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/compilation_on_macos.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,13 @@ jobs:
269269
- name: build wasi-libc (needed for wasi-threads)
270270
run: |
271271
git clone --branch wasi-sdk-17 https://github.com/WebAssembly/wasi-libc
272+
mkdir wasi-libc
272273
cd wasi-libc
274+
git init
275+
# "Rename thread_spawn import" commit on main branch
276+
git fetch https://github.com/WebAssembly/wasi-libc \
277+
8f5275796a82f8ecfd0833a4f3f444fa37ed4546
278+
git checkout FETCH_HEAD
273279
make \
274280
AR=/opt/wasi-sdk/bin/llvm-ar \
275281
NM=/opt/wasi-sdk/bin/llvm-nm \
@@ -329,4 +335,4 @@ jobs:
329335
mkdir build && cd build
330336
cmake -DWASI_SYSROOT=`pwd`/../../../core/deps/wasi-libc/sysroot ..
331337
cmake --build . --config Release --parallel 4
332-
./iwasm wasm-apps/no_pthread.wasm
338+
./iwasm wasm-apps/no_pthread.wasm

0 commit comments

Comments
 (0)