mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-30 13:24:22 +01:00
Dinamically set cmake's parallel level based on the amount of cpus
available
This commit is contained in:
2
.github/workflows/napi.yml
vendored
2
.github/workflows/napi.yml
vendored
@@ -49,7 +49,7 @@ jobs:
|
||||
tar -xvf wasi-sdk-25.0-x86_64-linux.tar.gz
|
||||
build: |
|
||||
export WASI_SDK_PATH="$(pwd)/wasi-sdk-25.0-x86_64-linux"
|
||||
export CMAKE_BUILD_PARALLEL_LEVEL=2
|
||||
export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc)
|
||||
export TARGET_CXXFLAGS="--target=wasm32-wasi-threads --sysroot=$(pwd)/wasi-sdk-25.0-x86_64-linux/share/wasi-sysroot -pthread -mllvm -wasm-enable-sjlj -lsetjmp"
|
||||
export TARGET_CFLAGS="$TARGET_CXXFLAGS"
|
||||
yarn build --target wasm32-wasip1-threads
|
||||
|
||||
Reference in New Issue
Block a user