[llvm-commits] [llvm] r113393 - /llvm/trunk/utils/release/test-release.sh
Duncan Sands
baldrick at free.fr
Wed Sep 8 12:50:25 PDT 2010
Author: baldrick
Date: Wed Sep 8 14:50:25 2010
New Revision: 113393
URL: http://llvm.org/viewvc/llvm-project?rev=113393&view=rev
Log:
Move the number of cpus logic to somewhere more logical.
Modified:
llvm/trunk/utils/release/test-release.sh
Modified: llvm/trunk/utils/release/test-release.sh
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/release/test-release.sh?rev=113393&r1=113392&r2=113393&view=diff
==============================================================================
--- llvm/trunk/utils/release/test-release.sh (original)
+++ llvm/trunk/utils/release/test-release.sh Wed Sep 8 14:50:25 2010
@@ -23,15 +23,6 @@
do_64bit="yes"
BuildDir="`pwd`"
-# Figure out how many make processes to run.
-NumJobs=`sysctl -n hw.activecpu 2> /dev/null || true`
-if [ -z "$NumJobs" ]; then
- NumJobs=`sysctl -n hw.ncpu 2> /dev/null || true`
-fi
-if [ -z "$NumJobs" ]; then
- NumJobs=`grep -c processor /proc/cpuinfo 2> /dev/null || true`
-fi
-
function usage() {
echo "usage: `basename $0` -release X.Y -rc NUM [OPTIONS]"
echo ""
@@ -104,6 +95,16 @@
exit 1
fi
+# Figure out how many make processes to run.
+if [ -z "$NumJobs" ]; then
+ NumJobs=`sysctl -n hw.activecpu 2> /dev/null || true`
+fi
+if [ -z "$NumJobs" ]; then
+ NumJobs=`sysctl -n hw.ncpu 2> /dev/null || true`
+fi
+if [ -z "$NumJobs" ]; then
+ NumJobs=`grep -c processor /proc/cpuinfo 2> /dev/null || true`
+fi
if [ -z "$NumJobs" ]; then
NumJobs=3
fi
More information about the llvm-commits
mailing list