Skip to content

Commit e0f670d

Browse files
author
Andras Fekete
committed
Set a safe default for parallelism of compilation
1 parent d39af6f commit e0f670d

4 files changed

Lines changed: 6 additions & 2 deletions

File tree

scripts/test-openssl.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#set -e
2424

2525
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
26+
NUMCPU=${NUMCPU:-8}
2627
source ${SCRIPT_DIR}/utils-openssl.sh
2728
source ${SCRIPT_DIR}/utils-wolfssl.sh
2829

scripts/test-wp-cs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#
2121

2222
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
23+
NUMCPU=${NUMCPU:-8}
2324
source ${SCRIPT_DIR}/utils-openssl.sh
2425
source ${SCRIPT_DIR}/utils-wolfssl.sh
2526

scripts/utils-openssl.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ OPENSSL_TAG=${OPENSSL_TAG:-"openssl-3.0.0"}
2828
OPENSSL_SOURCE_DIR=$PWD/openssl-source
2929
OPENSSL_INSTALL_DIR=$PWD/openssl-install
3030

31+
NUMCPU=${NUMCPU:-8}
32+
3133
clone_openssl() {
3234
if [ -d ${OPENSSL_SOURCE_DIR} ]; then
3335
OPENSSL_TAG_CUR=$(cd ${OPENSSL_SOURCE_DIR} && git describe --tags)

scripts/utils-wolfssl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ install_wolfssl() {
7474
printf "Done.\n"
7575

7676
printf "\tBuild wolfSSL ${WOLFSSL_TAG} ... "
77-
make -j$NUMCPU >>$LOG_FILE 2>&1
77+
make >>$LOG_FILE 2>&1
7878
if [ $? != 0 ]; then
7979
printf "ERROR.\n"
8080
rm -rf ${WOLFSSL_INSTALL_DIR}
@@ -84,7 +84,7 @@ install_wolfssl() {
8484
printf "Done.\n"
8585

8686
printf "\tInstalling wolfSSL ${WOLFSSL_TAG} ... "
87-
make -j$NUMCPU install >>$LOG_FILE 2>&1
87+
make install >>$LOG_FILE 2>&1
8888
if [ $? != 0 ]; then
8989
printf "ERROR.\n"
9090
rm -rf ${WOLFSSL_INSTALL_DIR}

0 commit comments

Comments
 (0)