Automatic processor count for parallel make
This commit is contained in:
7
rebuild
7
rebuild
@ -1,7 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
processor_count=`grep -c "^processor" /proc/cpuinfo`
|
||||||
|
count=$((${processor_count} - 1))
|
||||||
|
echo "Detected ${processor_count} processors, using ${count}"
|
||||||
|
|
||||||
make distclean
|
make distclean
|
||||||
pushd ..
|
pushd ..
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
popd
|
popd
|
||||||
|
|
||||||
../configure --prefix=/opt/local --enable-ipv6 CXXFLAGS="-O0 -g"
|
../configure --prefix=/opt/local --enable-ipv6 CXXFLAGS="-O0 -g"
|
||||||
make -kj11
|
make -kj${count}
|
||||||
|
|||||||
Reference in New Issue
Block a user