mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-09-08 20:04:09 -04:00
[Build] Add TOO_MANY_CORES
The JDK needs a *lot* of RAM to compile, and this scales with the number of jobs you run. This variable should make it a little more tolerable.
This commit is contained in:
parent
8ce5f0e16a
commit
cc365ba733
@ -140,6 +140,12 @@ else
|
|||||||
jobs=$(nproc)
|
jobs=$(nproc)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Failsafe environment variable for computers with too many cores
|
||||||
|
# i.e. Cart's 7K62
|
||||||
|
if [[ "$TOO_MANY_CORES" == "1" ]]; then
|
||||||
|
jobs=6
|
||||||
|
fi
|
||||||
|
|
||||||
echo Running ${jobs} jobs to build the jdk
|
echo Running ${jobs} jobs to build the jdk
|
||||||
|
|
||||||
cd build/${JVM_PLATFORM}-${TARGET_JDK}-${JVM_VARIANTS}-${JDK_DEBUG_LEVEL}
|
cd build/${JVM_PLATFORM}-${TARGET_JDK}-${JVM_VARIANTS}-${JDK_DEBUG_LEVEL}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user