build: Modify build script for Darwin
authorsyeon.hwang <syeon.hwang@samsung.com>
Tue, 30 Oct 2012 06:50:16 +0000 (15:50 +0900)
committersyeon.hwang <syeon.hwang@samsung.com>
Tue, 30 Oct 2012 06:50:16 +0000 (15:50 +0900)
Add check routine to detect number of processor cores for darwin

Signed-off-by: syeon.hwang <syeon.hwang@samsung.com>
tizen/build.sh

index 77234c5db97aa5f95c15a6435fa1850518f55fd6..981c706be31cb8da34307a274a75e2f13487e7c0 100755 (executable)
@@ -11,6 +11,9 @@ Linux)
 MINGW*)
     NUMCPU=`echo $NUMBER_OF_PROCESSORS`
     ;;
+Darwin)
+    NUMCPU=`sysctl hw.ncpu | awk '{print $2}'`
+    ;;
 esac
 
 echo "Number of CPUs $NUMCPU"