mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 01:01:59 +03:00
2477d060a8
On FreeBSD `nproc` is not available in a standard installation, so the equivalent `sysctl -n hw.ncpu` is used.
11 lines
240 B
Plaintext
Executable File
11 lines
240 B
Plaintext
Executable File
rm -f expected
|
|
if [ "FreeBSD" = "$(uname)" ]; then
|
|
echo "$(sysctl -n hw.ncpu) processors" > expected
|
|
else
|
|
echo "$(nproc) processors" > expected
|
|
fi
|
|
|
|
$1 --no-banner --no-color --console-width 0 NumProcessors.idr --exec main
|
|
|
|
rm -rf build
|