From: Devang Patel Date: Fri, 11 Apr 2008 17:45:39 +0000 (+0000) Subject: Change llvm tools install location. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6b893fced8ce8ac711d4fd6718f56c921ad8a6e3;p=oota-llvm.git Change llvm tools install location. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49540 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm index 2ea0a29dafe..51fdf35c9d9 100755 --- a/utils/buildit/build_llvm +++ b/utils/buildit/build_llvm @@ -59,6 +59,11 @@ echo DARWIN_VERS = $DARWIN_VERS # If the user has CC set in their environment unset it now unset CC +DT_HOME=$DEST_DIR//Developer/usr +if [ "x$DEVELOPER_BIN" != "x" ]; then +DT_HOME=$DEST_DIR/$DEVELOPER_DIR/usr +fi + ################################################################################ # Run the build. @@ -75,7 +80,7 @@ mkdir -p $DIR/obj-llvm || exit 1 cd $DIR/obj-llvm || exit 1 if [ \! -f Makefile.config ]; then - $SRC_DIR/llvm/configure --prefix=$DEST_DIR$DEST_ROOT \ + $SRC_DIR/llvm/configure --prefix=$DT_HOME/local \ --enable-targets=x86,powerpc,cbe \ --enable-assertions=$LLVM_ASSERTIONS \ --enable-optimized=$LLVM_OPTIMIZED \ @@ -145,14 +150,9 @@ else fi cd $DEST_DIR$DEST_ROOT -# LTO is part of developer tools -LTO_HOME=$DEST_DIR//Developer/usr -if [ "x$DEVELOPER_BIN" != "x" ]; then -LTO_HOME=$DEST_DIR/$DEVELOPER_DIR/usr -fi -mkdir -p $LTO_HOME/lib -mv lib/libLTO.dylib $LTO_HOME/lib/libLTO.dylib +mkdir -p $DT_HOME/lib +mv lib/libLTO.dylib $DT_HOME/lib/libLTO.dylib rm -f lib/libLTO.a lib/libLTO.la