set build parallelism in common.sh

master
paradust7 2022-08-07 03:29:20 +00:00
parent ba415e7e8c
commit ab6111aaab
5 changed files with 12 additions and 2 deletions

View File

@ -30,7 +30,7 @@ emcmake cmake \
-DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" \
"$BUILD_DIR/curl"
emmake make -j4
emmake make
emmake make install
echo "curl OK"

View File

@ -7,6 +7,10 @@ rm -rf libjpeg
mkdir -p libjpeg
pushd libjpeg
# makefile can't handle parallelism
export MAKEFLAGS=""
emcmake cmake \
-DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" \
-DWITH_SIMD=0 \

View File

@ -61,7 +61,7 @@ if ! $INCREMENTAL; then
"$BASE_DIR/minetest"
fi
emmake make -j4
emmake make
echo "Installing into www/"
rm -rf "$WWW_DIR"

View File

@ -7,6 +7,10 @@ rm -rf zstd-build
mkdir zstd-build
pushd zstd-build
# makefile can't handle parallelism
export MAKEFLAGS=""
export CFLAGS="-D_POSIX_SOURCE=1"
export CXXFLAGS="-D_POSIX_SOURCE=1"
emcmake cmake \

View File

@ -34,6 +34,8 @@ INSTALL_DIR="$BUILD_DIR/install"
WWW_DIR="$BASE_DIR/www"
mkdir -p "$SOURCES_DIR" "$BUILD_DIR" "$INSTALL_DIR"
export MAKEFLAGS="-j$(nproc)"
export CFLAGS="$COMMON_CFLAGS -pthread -sUSE_PTHREADS=1 -fexceptions"
export CXXFLAGS="$COMMON_CFLAGS -pthread -sUSE_PTHREADS=1 -fexceptions"
export LDFLAGS="$COMMON_LDFLAGS -pthread -sUSE_PTHREADS=1 -fexceptions -sEXIT_RUNTIME"