aboutsummaryrefslogtreecommitdiffstats
path: root/utils/buildit
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-10-27 23:31:24 +0000
committerBill Wendling <isanbard@gmail.com>2008-10-27 23:31:24 +0000
commite649778b555465fd25811daef98f6ddbc9efd378 (patch)
tree51ed30acaed37f8cc6a867822759872c2414f4b2 /utils/buildit
parent985921e8469f356c357e09744ad515a668f4e411 (diff)
downloadexternal_llvm-e649778b555465fd25811daef98f6ddbc9efd378.zip
external_llvm-e649778b555465fd25811daef98f6ddbc9efd378.tar.gz
external_llvm-e649778b555465fd25811daef98f6ddbc9efd378.tar.bz2
- Fix SUBVERSION string to handle x.x.x version number formats.
- Add VERBOSE=1 flag. - Specify the LLVM_SUBMIT_VERSION when doing the "make install". The libLTO.dylib relies upon this flag during that time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/buildit')
-rwxr-xr-xutils/buildit/build_llvm9
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm
index 6b83477..09baca0 100755
--- a/utils/buildit/build_llvm
+++ b/utils/buildit/build_llvm
@@ -89,7 +89,7 @@ if [ \! -f Makefile.config ]; then
|| exit 1
fi
-SUBVERSION=`echo $RC_ProjectSourceVersion | sed -e 's/.*\.//'`
+SUBVERSION=`echo $RC_ProjectSourceVersion | sed -e 's/[^.]*\.\([0-9]*\).*/\1/'`
if [ "x$SUBVERSION" != "x$RC_ProjectSourceVersion" ]; then
LLVM_SUBMIT_SUBVERSION=`printf "%02d" $SUBVERSION`
@@ -138,7 +138,8 @@ fi
make $JOBS_FLAG $OPTIMIZE_OPTS UNIVERSAL=1 UNIVERSAL_ARCH="$TARGETS" \
LLVM_SUBMIT_VERSION=$LLVM_SUBMIT_VERSION \
LLVM_SUBMIT_SUBVERSION=$LLVM_SUBMIT_SUBVERSION \
- CXXFLAGS="-DLLVM_VERSION_INFO='\" Apple Build #$LLVM_VERSION\"'"
+ CXXFLAGS="-DLLVM_VERSION_INFO='\" Apple Build #$LLVM_VERSION\"'" \
+ VERBOSE=1
if ! test $? == 0 ; then
echo "error: LLVM 'make' failed!"
@@ -158,7 +159,9 @@ cd $DIR/obj-llvm || exit 1
# Install the tree into the destination directory.
make $LOCAL_MAKEFLAGS $OPTIMIZE_OPTS UNIVERSAL=1 UNIVERSAL_ARCH="$TARGETS" \
- OPTIMIZE_OPTION='-O2' install
+ LLVM_SUBMIT_VERSION=$LLVM_SUBMIT_VERSION \
+ LLVM_SUBMIT_SUBVERSION=$LLVM_SUBMIT_SUBVERSION \
+ OPTIMIZE_OPTION='-O2' VERBOSE=1 install
if ! test $? == 0 ; then
echo "error: LLVM 'make install' failed!"