llvm.org GIT mirror llvm / 553d22c
Move SYSCTL stuff close to where it's used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44031 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 11 years ago
1 changed file(s) with 15 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
104104 echo "error: LLVM 'make' failed!"
105105 exit 1
106106 fi
107
108 # Figure out how many make processes to run.
109 SYSCTL=`sysctl -n hw.activecpu`
110
111 # hw.activecpu only available in 10.2.6 and later
112 if [ -z "$SYSCTL" ]; then
113 SYSCTL=`sysctl -n hw.ncpu`
114 fi
115
116 # sysctl -n hw.* does not work when invoked via B&I chroot /BuildRoot. Builders
117 # can default to 2, since even if they are single processor, nothing else is
118 # running on the machine.
119 if [ -z "$SYSCTL" ]; then
120 SYSCTL=2
121 fi
122107
123108 ################################################################################
124109 # Construct the actual destination root, by copying stuff from $DIR/dst-* to
183168 ################################################################################
184169 # Create SYM_DIR with information required for debugging.
185170
171 # Figure out how many make processes to run.
172 SYSCTL=`sysctl -n hw.activecpu`
173
174 # hw.activecpu only available in 10.2.6 and later
175 if [ -z "$SYSCTL" ]; then
176 SYSCTL=`sysctl -n hw.ncpu`
177 fi
178
179 # sysctl -n hw.* does not work when invoked via B&I chroot /BuildRoot. Builders
180 # can default to 2, since even if they are single processor, nothing else is
181 # running on the machine.
182 if [ -z "$SYSCTL" ]; then
183 SYSCTL=2
184 fi
185
186186 cd $SYM_DIR || exit 1
187187
188188 # Clean out SYM_DIR in case -noclean was passed to buildit.