Automatic processor count for parallel make

This commit is contained in:
2025-05-12 22:20:22 -04:00
parent 22fc5227c4
commit 44bf91d361

View File

@ -1,7 +1,12 @@
#!/usr/bin/env bash
processor_count=`grep -c "^processor" /proc/cpuinfo`
count=$((${processor_count} - 1))
echo "Detected ${processor_count} processors, using ${count}"
make distclean
pushd ..
./autogen.sh
popd
../configure --prefix=/opt/local --enable-ipv6 CXXFLAGS="-O0 -g"
make -kj11
make -kj${count}