From c4272cb4638c1628b2559b0b7374faa4ea532576 Mon Sep 17 00:00:00 2001 From: PHO Date: Thu, 23 Feb 2012 23:23:39 +0900 Subject: [PATCH] detect_number_of_cpus: tiny fix --- build-hc-pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0