use more cores for make on unix systems
parent
d34555f45d
commit
517ff4391a
|
@ -92,7 +92,11 @@ function build ()
|
||||||
|
|
||||||
configure
|
configure
|
||||||
|
|
||||||
make -j2
|
if [ "$(uname)" == "Linux" ]; then
|
||||||
|
make -j$(nproc)
|
||||||
|
elif [ "$(uname)" == "Darwin" ]; then
|
||||||
|
make -j$(sysctl -n hw.physicalcpu)
|
||||||
|
fi
|
||||||
|
|
||||||
finish
|
finish
|
||||||
}
|
}
|
||||||
|
@ -105,8 +109,12 @@ function test ()
|
||||||
|
|
||||||
configure
|
configure
|
||||||
|
|
||||||
# Actual build:
|
# Actual testing
|
||||||
make -j2 check
|
if [ "$(uname)" == "Linux" ]; then
|
||||||
|
make -j$(nproc)
|
||||||
|
elif [ "$(uname)" == "Darwin" ]; then
|
||||||
|
make -j$(sysctl -n hw.physicalcpu)
|
||||||
|
fi
|
||||||
|
|
||||||
finish
|
finish
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue