summaryrefslogtreecommitdiff
path: root/utils/buildit/build_llvm
diff options
context:
space:
mode:
authorStuart Hastings <stuart@apple.com>2009-10-19 17:53:54 +0000
committerStuart Hastings <stuart@apple.com>2009-10-19 17:53:54 +0000
commit93d8cd8072434f3348e12769145e0c8eb40edff1 (patch)
tree0c1389b5a33d34d0edafb358918508aed0457209 /utils/buildit/build_llvm
parented748a06775ca01f5c6faf366cc347677b9d66b9 (diff)
downloadllvm-93d8cd8072434f3348e12769145e0c8eb40edff1.tar.gz
llvm-93d8cd8072434f3348e12769145e0c8eb40edff1.tar.bz2
llvm-93d8cd8072434f3348e12769145e0c8eb40edff1.tar.xz
Tweak top-level Makefile to facilitate Apple-style build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/buildit/build_llvm')
-rwxr-xr-xutils/buildit/build_llvm4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm
index 91fbe15be4..2bdb208237 100755
--- a/utils/buildit/build_llvm
+++ b/utils/buildit/build_llvm
@@ -82,6 +82,10 @@ SRC_DIR=$DIR/src
rm -rf $SRC_DIR || exit 1
mkdir $SRC_DIR || exit 1
ln -s $ORIG_SRC_DIR/* $SRC_DIR/ || exit 1
+# We can't use the top-level Makefile as-is. Remove the soft link:
+rm $SRC_DIR/Makefile || exit 1
+# Now create our own by editing the top-level Makefile, deleting every line marked "Apple-style":
+sed -e '/[Aa]pple-style/d' -e '/include.*GNUmakefile/d' $ORIG_SRC_DIR/Makefile > $SRC_DIR/Makefile || exit 1
# Build the LLVM tree universal.
mkdir -p $DIR/obj-llvm || exit 1