diff options
author | Duncan Sands <baldrick@free.fr> | 2010-09-08 19:50:25 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-09-08 19:50:25 +0000 |
commit | d357d747ded75c3eae9238f23e1c05d621d915e8 (patch) | |
tree | 6dd5ebb7253db23ab056e3c093fbe8e1007cf60b /utils/release | |
parent | f2605419ea57902095d8c2f4f257813a4e84bc95 (diff) | |
download | external_llvm-d357d747ded75c3eae9238f23e1c05d621d915e8.zip external_llvm-d357d747ded75c3eae9238f23e1c05d621d915e8.tar.gz external_llvm-d357d747ded75c3eae9238f23e1c05d621d915e8.tar.bz2 |
Move the number of cpus logic to somewhere more logical.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/release')
-rw-r--r-- | utils/release/test-release.sh | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/utils/release/test-release.sh b/utils/release/test-release.sh index 1832dc4..89232a3 100644 --- a/utils/release/test-release.sh +++ b/utils/release/test-release.sh @@ -23,15 +23,6 @@ do_fortran="yes" 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 @@ if [ -z "$RC" ]; then 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 |