Skip to content

Commit 5f0e041

Browse files
committed
Use nproc to determine the number of CPUs in build.sh
1 parent 5adcd2f commit 5f0e041

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ build_llvm()
6767
CC=$CLANG CXX=$CLANGXX cmake ../llvm-4.0.0.src/ \
6868
-DCMAKE_BUILD_TYPE=Release
6969
fi
70-
PARALLEL=`grep -c ^processor /proc/cpuinfo`
71-
make -j $PARALLEL
70+
make -j `nproc`
7271
cd ..
7372
patch -p0 -R < bug81066.patch
7473
echo

0 commit comments

Comments
 (0)