Skip to content

Commit 83e2890

Browse files
author
Andras Fekete
committed
Limit the number of processes to the number of cores
1 parent 1ef6d10 commit 83e2890

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

IDE/XCODE/build-openssl-framework.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ SDK_OUTPUT_DIR=${OUTDIR}/xcframework
3030
CFLAGS_COMMON=""
3131
# Base configure flags
3232
CONF_OPTS=""
33+
NUMCPU=$(sysctl -n hw.ncpu)
3334

3435
helpFunction()
3536
{
@@ -67,7 +68,7 @@ build() { # <ARCH=arm64|x86_64> <TYPE=iphonesimulator|iphoneos|macosx|watchos|wa
6768
mkdir -p ${OUTDIR}/${TYPE}-${ARCH} && cd ${OUTDIR}/${TYPE}-${ARCH}
6869

6970
CC="clang" CXX="clang" CFLAGS="${CFLAGS_COMMON} -Os -arch ${ARCH} -isysroot ${SDK_ROOT}" LDFLAGS="-arch ${ARCH} -isysroot ${SDK_ROOT}" ${WOLFSSL_DIR}/Configure no-asm ${TARGET} --prefix=${OUTDIR}/openssl-install-${TYPE}-${ARCH} ${CONF_OPTS}
70-
make -j
71+
make -j${NUMCPU}
7172
make install
7273

7374
popd

0 commit comments

Comments
 (0)