mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +00:00
Change llvm tools install location.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
30ac7df857
commit
6b893fced8
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user