mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-09-15 23:24:55 -04:00
Use all cores for building for iOS
This commit is contained in:
parent
04541bd3e0
commit
8f6eb6f060
10
buildjdk.sh
10
buildjdk.sh
@ -98,10 +98,16 @@ if [ "$error_code" -ne 0 ]; then
|
|||||||
exit $error_code
|
exit $error_code
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
jobs=4
|
||||||
|
|
||||||
|
if [ "$BUILD_IOS" == "1" ]; then
|
||||||
|
jobs=$(sysctl -n hw.ncpu)
|
||||||
|
fi
|
||||||
|
|
||||||
cd build/${JVM_PLATFORM}-${TARGET_JDK}-${JVM_VARIANTS}-${JDK_DEBUG_LEVEL}
|
cd build/${JVM_PLATFORM}-${TARGET_JDK}-${JVM_VARIANTS}-${JDK_DEBUG_LEVEL}
|
||||||
make JOBS=4 images || \
|
make JOBS=$jobs images || \
|
||||||
error_code=$?
|
error_code=$?
|
||||||
if [ "$error_code" -ne 0 ]; then
|
if [ "$error_code" -ne 0 ]; then
|
||||||
echo "Build failure, exited with code $error_code. Trying again."
|
echo "Build failure, exited with code $error_code. Trying again."
|
||||||
make JOBS=4 images
|
make JOBS=$jobs images
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user