X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=build-hc-pkg.git;a=blobdiff_plain;f=build-hc-pkg;fp=build-hc-pkg;h=0c9069e613629c07e20bc6335d94be429c31d9bd;hp=48e674ba2d22c038d93f6d6e2368eaf2bf6f54e3;hb=c4272cb4638c1628b2559b0b7374faa4ea532576;hpb=6ce23cc52fc412d726b6da346669d800fde9de07 diff --git a/build-hc-pkg b/build-hc-pkg index 48e674b..0c9069e 100755 --- a/build-hc-pkg +++ b/build-hc-pkg @@ -12,7 +12,7 @@ function detect_platform_type () { } function detect_number_of_cpus () { - if ! sysctl -n hw.ncpu; then + if ! sysctl -n hw.ncpu 2>/dev/null; then echo "WARNING: I don't know how to detect the number of processors on this platform." >&2 echo "WARNING: GHC will be built using only 1 processor. Expect some slowdown." >&2 echo 1