blob: c0a4a935ae79f210c292f136fa35e39a87a01805 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
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
|