llvm.org GIT mirror llvm / 783993e
Make changes so that this runs on FreeBSD. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142482 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 8 years ago
1 changed file(s) with 13 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
None #!/bin/bash
0 #!/bin/sh
11 #===-- test-release.sh - Test the LLVM release candidates ------------------===#
22 #
33 # The LLVM Compiler Infrastructure
1010 # Download, build, and test the release candidate for an LLVM release.
1111 #
1212 #===------------------------------------------------------------------------===#
13
14 if [ `uname -s` = "FreeBSD" ]; then
15 MAKE=gmake
16 else
17 MAKE=make
18 fi
1319
1420 projects="llvm cfe dragonegg test-suite"
1521
245251
246252 cd $ObjDir
247253 echo "# Compiling llvm $Release-rc$RC $Flavor"
248 echo "# make -j $NumJobs VERBOSE=1 $ExtraOpts"
249 make -j $NumJobs VERBOSE=1 $ExtraOpts \
254 echo "# ${MAKE} -j $NumJobs VERBOSE=1 $ExtraOpts"
255 ${MAKE} -j $NumJobs VERBOSE=1 $ExtraOpts \
250256 2>&1 | tee $LogDir/llvm.make-Phase$Phase-$Flavor.log
251257
252258 echo "# Installing llvm $Release-rc$RC $Flavor"
253 echo "# make install"
254 make install \
259 echo "# ${MAKE} install"
260 ${MAKE} install \
255261 2>&1 | tee $LogDir/llvm.install-Phase$Phase-$Flavor.log
256262 cd $BuildDir
257263 }
262268 ObjDir="$3"
263269
264270 cd $ObjDir
265 make -k check-all \
271 ${MAKE} -k check-all \
266272 2>&1 | tee $LogDir/llvm.check-Phase$Phase-$Flavor.log
267 make -k unittests \
273 ${MAKE} -k unittests \
268274 2>&1 | tee $LogDir/llvm.unittests-Phase$Phase-$Flavor.log
269275 cd $BuildDir
270276 }