mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 18:18:07 +00:00
On non Linux systems, (g)make distrib stops halfway
because of QEMU not supported. Symplifying cores counting data gathering.
This commit is contained in:
@ -44,7 +44,7 @@ echo "[*] Performing basic sanity checks..."
|
|||||||
if [ ! "`uname -s`" = "Linux" ]; then
|
if [ ! "`uname -s`" = "Linux" ]; then
|
||||||
|
|
||||||
echo "[-] Error: QEMU instrumentation is supported only on Linux."
|
echo "[-] Error: QEMU instrumentation is supported only on Linux."
|
||||||
exit 1
|
exit 0
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -73,19 +73,19 @@ if [ "$PLT" = "Linux" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$PLT" = "Darwin" ]; then
|
if [ "$PLT" = "Darwin" ]; then
|
||||||
CORES=`sysctl hw.ncpu | cut -d' ' -f2`
|
CORES=`sysctl -n hw.ncpu`
|
||||||
TARCMD=tar
|
TARCMD=tar
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$PLT" = "FreeBSD" ]; then
|
if [ "$PLT" = "FreeBSD" ]; then
|
||||||
MAKECMD=gmake
|
MAKECMD=gmake
|
||||||
CORES=`sysctl hw.ncpu | cut -d' ' -f2`
|
CORES=`sysctl -n hw.ncpu`
|
||||||
TARCMD=gtar
|
TARCMD=gtar
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$PLT" = "NetBSD" ] || [ "$PLT" = "OpenBSD" ]; then
|
if [ "$PLT" = "NetBSD" ] || [ "$PLT" = "OpenBSD" ]; then
|
||||||
MAKECMD=gmake
|
MAKECMD=gmake
|
||||||
CORES=`sysctl hw.ncpu | cut -d'=' -f2`
|
CORES=`sysctl -n hw.ncpu`
|
||||||
TARCMD=gtar
|
TARCMD=gtar
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user