diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-10-16 02:54:26 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-10-16 02:54:26 +0000 |
commit | 914f1924e06b5ad0b6f934fc982ce34f10e1155f (patch) | |
tree | 8c9a570a2e0c431f8b03354f95ca382fffe78762 /llvm/tools | |
parent | 2c1a4cce4ccff6f94bdd16f7720378359a82ebdd (diff) | |
download | bcm5719-llvm-914f1924e06b5ad0b6f934fc982ce34f10e1155f.tar.gz bcm5719-llvm-914f1924e06b5ad0b6f934fc982ce34f10e1155f.zip |
autoconf: Introduce --with-clang-srcdir, to build out-of-tree clang as tools/clang on tools/Makefile.
llvm-svn: 142102
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/llvm/tools/Makefile b/llvm/tools/Makefile index 68ce314c92a..2da39177815 100644 --- a/llvm/tools/Makefile +++ b/llvm/tools/Makefile @@ -9,8 +9,15 @@ LEVEL := .. +include $(LEVEL)/Makefile.config + # Build clang if present. -OPTIONAL_PARALLEL_DIRS := clang + +ifneq ($(CLANG_SRC_ROOT),) + OPTIONAL_PARALLEL_DIRS := $(CLANG_SRC_ROOT) +else + OPTIONAL_PARALLEL_DIRS := clang +endif # Build LLDB if present. Note LLDB must be built last as it depends on the # wider LLVM infrastructure (including Clang). @@ -36,9 +43,6 @@ ifdef ONLY_TOOLS PARALLEL_DIRS := $(filter-out lldb,$(ONLY_TOOLS)) endif -include $(LEVEL)/Makefile.config - - # These libraries build as dynamic libraries (.dylib /.so), they can only be # built if ENABLE_PIC is set. ifndef ONLY_TOOLS |