mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Make changes so that this runs on FreeBSD.
llvm-svn: 142482
This commit is contained in:
parent
b1fa647871
commit
f28fe31f2e
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
#===-- test-release.sh - Test the LLVM release candidates ------------------===#
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
@ -12,6 +12,12 @@
|
||||
#
|
||||
#===------------------------------------------------------------------------===#
|
||||
|
||||
if [ `uname -s` = "FreeBSD" ]; then
|
||||
MAKE=gmake
|
||||
else
|
||||
MAKE=make
|
||||
fi
|
||||
|
||||
projects="llvm cfe dragonegg test-suite"
|
||||
|
||||
# Base SVN URL for the sources.
|
||||
@ -246,13 +252,13 @@ function build_llvmCore() {
|
||||
|
||||
cd $ObjDir
|
||||
echo "# Compiling llvm $Release-rc$RC $Flavor"
|
||||
echo "# make -j $NumJobs VERBOSE=1 $ExtraOpts"
|
||||
make -j $NumJobs VERBOSE=1 $ExtraOpts \
|
||||
echo "# ${MAKE} -j $NumJobs VERBOSE=1 $ExtraOpts"
|
||||
${MAKE} -j $NumJobs VERBOSE=1 $ExtraOpts \
|
||||
2>&1 | tee $LogDir/llvm.make-Phase$Phase-$Flavor.log
|
||||
|
||||
echo "# Installing llvm $Release-rc$RC $Flavor"
|
||||
echo "# make install"
|
||||
make install \
|
||||
echo "# ${MAKE} install"
|
||||
${MAKE} install \
|
||||
2>&1 | tee $LogDir/llvm.install-Phase$Phase-$Flavor.log
|
||||
cd $BuildDir
|
||||
}
|
||||
@ -263,9 +269,9 @@ function test_llvmCore() {
|
||||
ObjDir="$3"
|
||||
|
||||
cd $ObjDir
|
||||
make -k check-all \
|
||||
${MAKE} -k check-all \
|
||||
2>&1 | tee $LogDir/llvm.check-Phase$Phase-$Flavor.log
|
||||
make -k unittests \
|
||||
${MAKE} -k unittests \
|
||||
2>&1 | tee $LogDir/llvm.unittests-Phase$Phase-$Flavor.log
|
||||
cd $BuildDir
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user