This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
forked from WebAssembly/wasi-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b36c433
commit 41fa329
Showing
7 changed files
with
107 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Asterius | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
|
||
build: | ||
name: build-threads-${{ matrix.threads }} | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
threads: | ||
- ON | ||
- OFF | ||
env: | ||
threads: ${{ matrix.threads }} | ||
steps: | ||
|
||
- name: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- name: build | ||
run: | | ||
if [ $threads == ON ]; then | ||
git apply -v enable_threads.patch | ||
fi | ||
podman run \ | ||
--network host \ | ||
--pull always \ | ||
--rm \ | ||
--volume $(pwd):$(pwd) \ | ||
--workdir $(pwd) \ | ||
debian:sid-slim \ | ||
./asterius_build.sh | ||
- name: upload-artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist-asterius-threads-${{ matrix.threads }} | ||
path: dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
apt update | ||
apt full-upgrade -y | ||
apt install -y \ | ||
build-essential \ | ||
cmake \ | ||
git \ | ||
ninja-build \ | ||
python3 | ||
|
||
make package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
diff --git a/Makefile b/Makefile | ||
index 36350f1..bbcf62e 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -104,6 +104,7 @@ build/compiler-rt.BUILT: build/llvm.BUILT | ||
-DCOMPILER_RT_HAS_FPIC_FLAG=OFF \ | ||
-DCOMPILER_RT_ENABLE_IOS=OFF \ | ||
-DCOMPILER_RT_DEFAULT_TARGET_ONLY=On \ | ||
+ -DCOMPILER_RT_EXCLUDE_ATOMIC_BUILTIN=OFF \ | ||
-DWASI_SDK_PREFIX=$(BUILD_PREFIX) \ | ||
-DCMAKE_C_FLAGS="-Oz -flto $(DEBUG_PREFIX_MAP) --sysroot=$(BUILD_PREFIX)/share/wasi-sysroot" \ | ||
-DLLVM_CONFIG_PATH=$(ROOT_DIR)/build/llvm/bin/llvm-config \ | ||
@@ -126,8 +127,8 @@ LIBCXX_CMAKE_FLAGS = \ | ||
-DCMAKE_STAGING_PREFIX=$(PREFIX)/share/wasi-sysroot \ | ||
-DLLVM_CONFIG_PATH=$(ROOT_DIR)/build/llvm/bin/llvm-config \ | ||
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ | ||
- -DLIBCXX_ENABLE_THREADS:BOOL=OFF \ | ||
- -DLIBCXX_HAS_PTHREAD_API:BOOL=OFF \ | ||
+ -DLIBCXX_ENABLE_THREADS:BOOL=ON \ | ||
+ -DLIBCXX_HAS_PTHREAD_API:BOOL=ON \ | ||
-DLIBCXX_HAS_EXTERNAL_THREAD_API:BOOL=OFF \ | ||
-DLIBCXX_BUILD_EXTERNAL_THREAD_LIBRARY:BOOL=OFF \ | ||
-DLIBCXX_HAS_WIN32_THREAD_API:BOOL=OFF \ | ||
@@ -166,8 +167,8 @@ LIBCXXABI_CMAKE_FLAGS = \ | ||
-DLIBCXXABI_ENABLE_EXCEPTIONS:BOOL=OFF \ | ||
-DLIBCXXABI_ENABLE_SHARED:BOOL=OFF \ | ||
-DLIBCXXABI_SILENT_TERMINATE:BOOL=ON \ | ||
- -DLIBCXXABI_ENABLE_THREADS:BOOL=OFF \ | ||
- -DLIBCXXABI_HAS_PTHREAD_API:BOOL=OFF \ | ||
+ -DLIBCXXABI_ENABLE_THREADS:BOOL=ON \ | ||
+ -DLIBCXXABI_HAS_PTHREAD_API:BOOL=ON \ | ||
-DLIBCXXABI_HAS_EXTERNAL_THREAD_API:BOOL=OFF \ | ||
-DLIBCXXABI_BUILD_EXTERNAL_THREAD_LIBRARY:BOOL=OFF \ | ||
-DLIBCXXABI_HAS_WIN32_THREAD_API:BOOL=OFF \ |
Submodule llvm-project
updated
29235 files
Submodule wasi-libc
updated
3 files
+24 −20 | Makefile | |
+6 −6 | libc-top-half/musl/include/pthread.h | |
+47 −0 | pthread/pthread.c |