diff options
author | Stuart Hastings <stuart@apple.com> | 2009-10-22 17:22:37 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2009-10-22 17:22:37 +0000 |
commit | 8ded08a1c38a0b55a33655592d279706977ccc35 (patch) | |
tree | 60b48917591529397e6efd156bf016915cb0f2ab /utils/buildit | |
parent | df6a663b5b5a592c4dffdea732db0fe0d1453e14 (diff) | |
download | external_llvm-8ded08a1c38a0b55a33655592d279706977ccc35.zip external_llvm-8ded08a1c38a0b55a33655592d279706977ccc35.tar.gz external_llvm-8ded08a1c38a0b55a33655592d279706977ccc35.tar.bz2 |
Trying again to tweak the top-level Makefile to facilitate an Apple-style build.
Now with Clang-compatibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/buildit')
-rw-r--r-- | utils/buildit/GNUmakefile | 2 | ||||
-rwxr-xr-x | utils/buildit/build_llvm | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/utils/buildit/GNUmakefile b/utils/buildit/GNUmakefile index e3b334a..9971883 100644 --- a/utils/buildit/GNUmakefile +++ b/utils/buildit/GNUmakefile @@ -59,7 +59,7 @@ endif # NOTE : Always put version numbers at the end because they are optional. install: $(OBJROOT) $(SYMROOT) $(DSTROOT) cd $(OBJROOT) && \ - $(SRC)/build_llvm "$(RC_ARCHS)" "$(TARGETS)" \ + $(SRC)/utils/buildit/build_llvm "$(RC_ARCHS)" "$(TARGETS)" \ $(SRC) $(PREFIX) $(DSTROOT) $(SYMROOT) \ $(LLVM_ASSERTIONS) $(LLVM_OPTIMIZED) \ $(RC_ProjectSourceVersion) $(RC_ProjectSourceSubversion) diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm index 91fbe15..2bdb2082 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 |