summaryrefslogtreecommitdiff
path: root/utils/buildit
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-01-19 16:42:10 +0000
committerBob Wilson <bob.wilson@apple.com>2010-01-19 16:42:10 +0000
commitce8febefa528846ba7adfe8116dd3fa4fb31c9c1 (patch)
tree12aa519613428d81208c71e8f0221b3b360a2417 /utils/buildit
parentea982789354af0d24ea55021a5fc2178d4647980 (diff)
downloadllvm-ce8febefa528846ba7adfe8116dd3fa4fb31c9c1.tar.gz
llvm-ce8febefa528846ba7adfe8116dd3fa4fb31c9c1.tar.bz2
llvm-ce8febefa528846ba7adfe8116dd3fa4fb31c9c1.tar.xz
The change in r90189 adds a link in a directory outside the iPhone platform
directory when building the llvmCore_Embedded project. Fix this by putting the iPhone platform directory into DEST_DIR instead of DEST_ROOT. I also noticed what appears to be an unintentional use of DEVELOPER_BIN instead of DEVELOPER_DIR, so I fixed that and changed to use DEVELOPER_DIR in some places that were hardcoded to "Developer". Finally, the other changes here allowed some refactoring and simplification, which I have done. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93878 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/buildit')
-rwxr-xr-xutils/buildit/build_llvm27
1 files changed, 11 insertions, 16 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm
index 25f65544c6..1fa3fdfc71 100755
--- a/utils/buildit/build_llvm
+++ b/utils/buildit/build_llvm
@@ -57,25 +57,20 @@ DARWIN_VERS=`uname -r | sed 's/\..*//'`
echo DARWIN_VERS = $DARWIN_VERS
if [ "x$RC_ProjectName" = "xllvmCore_Embedded" ]; then
- DT_HOME=$DEST_DIR/Developer/Platforms/iPhoneOS.platform/Developer/usr
- DEST_ROOT="/Developer/Platforms/iPhoneOS.platform/Developer$DEST_ROOT"
-elif [ "x$RC_ProjectName" = "xllvmCore_EmbeddedHosted" ]; then
- DT_HOME=$DEST_DIR/usr
- DEST_ROOT="/Developer$DEST_ROOT"
+ DEST_DIR="$DEST_DIR/Developer/Platforms/iPhoneOS.platform"
+ mkdir -p "$DEST_DIR"
+fi
+
+DEVELOPER_DIR="${DEVELOPER_DIR-Developer}"
+if [ "x$RC_ProjectName" = "xllvmCore_EmbeddedHosted" ]; then
+ DT_HOME="$DEST_DIR/usr"
HOST_SDKROOT=$SDKROOT
else
- DT_HOME=$DEST_DIR/Developer/usr
- DEST_ROOT="/Developer$DEST_ROOT"
-fi
-if [ "x$DEVELOPER_BIN" != "x" ]; then
- if [ "x$RC_ProjectName" = "xllvmCore_Embedded" ]; then
- DT_HOME=$DEST_DIR/Developer/Platforms/iPhoneOS.platform/$DEVELOPER_DIR/usr
- else
- DT_HOME=$DEST_DIR/$DEVELOPER_DIR/usr
- fi
- DEST_ROOT="/$DEVELOPER_DIR$DEST_ROOT"
+ DT_HOME="$DEST_DIR/$DEVELOPER_DIR/usr"
fi
+DEST_ROOT="/$DEVELOPER_DIR$DEST_ROOT"
+
################################################################################
# Run the build.
@@ -350,7 +345,7 @@ find $DEST_DIR -name html.tar.gz -exec rm {} \;
cd $DEST_DIR
mkdir -p ./usr/lib/
cd usr/lib
-ln -s ../../Developer/usr/lib/libLTO.dylib ./libLTO.dylib
+ln -s ../../$DEVELOPER_DIR/usr/lib/libLTO.dylib ./libLTO.dylib
################################################################################
# w00t! Done!