diff options
author | Treeve Jelbert | 2021-10-26 10:03:38 +0200 |
---|---|---|
committer | Treeve Jelbert | 2021-10-26 10:03:38 +0200 |
commit | ed2cfe3d2709c428117cac62b0c1760aea1f89bd (patch) | |
tree | 5882320ad4155d5bdf7198af98f4e6ef6d3b9ae6 /qt6/qt6webengine/BUILD | |
parent | 85dba368bbf7497e5f538004d5062c70589da692 (diff) |
qt6webengine - improve build
Diffstat (limited to 'qt6/qt6webengine/BUILD')
-rwxr-xr-x | qt6/qt6webengine/BUILD | 8 |
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 |