llvm.org GIT mirror llvm / 6b893fc
Change llvm tools install location. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49540 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 11 years ago
1 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
5757
5858 # If the user has CC set in their environment unset it now
5959 unset CC
60
61 DT_HOME=$DEST_DIR//Developer/usr
62 if [ "x$DEVELOPER_BIN" != "x" ]; then
63 DT_HOME=$DEST_DIR/$DEVELOPER_DIR/usr
64 fi
6065
6166 ################################################################################
6267 # Run the build.
7479 cd $DIR/obj-llvm || exit 1
7580
7681 if [ \! -f Makefile.config ]; then
77 $SRC_DIR/llvm/configure --prefix=$DEST_DIR$DEST_ROOT \
82 $SRC_DIR/llvm/configure --prefix=$DT_HOME/local \
7883 --enable-targets=x86,powerpc,cbe \
7984 --enable-assertions=$LLVM_ASSERTIONS \
8085 --enable-optimized=$LLVM_OPTIMIZED \
144149 fi
145150
146151 cd $DEST_DIR$DEST_ROOT
147 # LTO is part of developer tools
148 LTO_HOME=$DEST_DIR//Developer/usr
149 if [ "x$DEVELOPER_BIN" != "x" ]; then
150 LTO_HOME=$DEST_DIR/$DEVELOPER_DIR/usr
151 fi
152
153 mkdir -p $LTO_HOME/lib
154 mv lib/libLTO.dylib $LTO_HOME/lib/libLTO.dylib
152
153 mkdir -p $DT_HOME/lib
154 mv lib/libLTO.dylib $DT_HOME/lib/libLTO.dylib
155155 rm -f lib/libLTO.a lib/libLTO.la
156156
157157