Skip to content

Commit

Permalink
use the latest wasi-libc as samples/wasi-threads relies on it
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Jan 25, 2023
1 parent 0a3e732 commit 7e2c6c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/compilation_on_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,13 @@ jobs:
- name: build wasi-libc (needed for wasi-threads)
run: |
git clone --branch wasi-sdk-17 https://github.com/WebAssembly/wasi-libc
mkdir wasi-libc
cd wasi-libc
git init
# "Rename thread_spawn import" commit on main branch
git fetch https://github.com/WebAssembly/wasi-libc \
8f5275796a82f8ecfd0833a4f3f444fa37ed4546
git checkout FETCH_HEAD
make \
AR=/opt/wasi-sdk/bin/llvm-ar \
NM=/opt/wasi-sdk/bin/llvm-nm \
Expand Down Expand Up @@ -329,4 +335,4 @@ jobs:
mkdir build && cd build
cmake -DWASI_SYSROOT=`pwd`/../../../core/deps/wasi-libc/sysroot ..
cmake --build . --config Release --parallel 4
./iwasm wasm-apps/no_pthread.wasm
./iwasm wasm-apps/no_pthread.wasm

0 comments on commit 7e2c6c0

Please sign in to comment.