aboutsummaryrefslogtreecommitdiffstats
path: root/utils/buildit
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-04-11 17:45:39 +0000
committerDevang Patel <dpatel@apple.com>2008-04-11 17:45:39 +0000
commit6b893fced8ce8ac711d4fd6718f56c921ad8a6e3 (patch)
treebe9e2b35b8c7afe8cfd1888d7a25e88be76be9ee /utils/buildit
parent30ac7df857cf2144dadde270075fefa7293365ee (diff)
downloadexternal_llvm-6b893fced8ce8ac711d4fd6718f56c921ad8a6e3.zip
external_llvm-6b893fced8ce8ac711d4fd6718f56c921ad8a6e3.tar.gz
external_llvm-6b893fced8ce8ac711d4fd6718f56c921ad8a6e3.tar.bz2
Change llvm tools install location.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49540 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/buildit')
-rwxr-xr-xutils/buildit/build_llvm16
1 files changed, 8 insertions, 8 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm
index 2ea0a29..51fdf35 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