We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ef6d10 commit 83e2890Copy full SHA for 83e2890
1 file changed
IDE/XCODE/build-openssl-framework.sh
@@ -30,6 +30,7 @@ SDK_OUTPUT_DIR=${OUTDIR}/xcframework
30
CFLAGS_COMMON=""
31
# Base configure flags
32
CONF_OPTS=""
33
+NUMCPU=$(sysctl -n hw.ncpu)
34
35
helpFunction()
36
{
@@ -67,7 +68,7 @@ build() { # <ARCH=arm64|x86_64> <TYPE=iphonesimulator|iphoneos|macosx|watchos|wa
67
68
mkdir -p ${OUTDIR}/${TYPE}-${ARCH} && cd ${OUTDIR}/${TYPE}-${ARCH}
69
70
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}
- make -j
71
+ make -j${NUMCPU}
72
make install
73
74
popd
0 commit comments