summaryrefslogtreecommitdiffstats
path: root/qt6/qt6webengine/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'qt6/qt6webengine/BUILD')
-rwxr-xr-xqt6/qt6webengine/BUILD8
1 files changed, 8 insertions, 0 deletions
diff --git a/qt6/qt6webengine/BUILD b/qt6/qt6webengine/BUILD
index 2edea29172..c0a4a935ae 100755
--- a/qt6/qt6webengine/BUILD
+++ b/qt6/qt6webengine/BUILD
@@ -1,4 +1,12 @@
if is_depends_enabled $SPELL nodejs-bin;then
export PATH+=":/opt/nodejs/bin"
fi &&
+# memory in GiB
+MEM=`grep MemTotal /proc/meminfo|uniq|cut -d: -f2|cut -dk -f1` &&
+((MEM=$MEM/1024**2)) &&
+JOBS=`echo "$MEM" / "1.3" | bc` &&
+echo $JOBS &&
+
+export NINJAFLAGS="-j$JOBS -l$JOBS" &&
+
default_build