diff options
author | Mike Stump <mrs@apple.com> | 2009-01-24 00:00:41 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-01-24 00:00:41 +0000 |
commit | 0a26891ce9b6de840c087d73c04324729c3d1a8b (patch) | |
tree | 3141263947916333e7c89b9ccd8dceef59824e33 | |
parent | 8191371f87495dea2abd733bf63224b6209fdb12 (diff) |
Perform optional clang building.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62895 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Makefile.rules | 7 | ||||
-rw-r--r-- | tools/Makefile | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index 0d4a0c8aed..5bddff8e8a 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -613,6 +613,13 @@ $(RecursiveTargets):: endif #----------------------------------------------------------- +# Handle the OPTIONAL_PARALLEL_DIRS options for optional parallel construction +#----------------------------------------------------------- +ifdef OPTIONAL_PARALLEL_DIRS + PARALLEL_DIRS += $(foreach T,$(OPTIONAL_PARALLEL_DIRS),$(shell test -d $(PROJ_SRC_DIR)/$(T) && echo "$(T)")) +endif + +#----------------------------------------------------------- # Handle the PARALLEL_DIRS options for parallel construction #----------------------------------------------------------- ifdef PARALLEL_DIRS diff --git a/tools/Makefile b/tools/Makefile index 2726c1f3e4..519717ad98 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -8,6 +8,10 @@ ##===----------------------------------------------------------------------===## LEVEL := .. + +# Build clang if present. +OPTIONAL_PARALLEL_DIRS := clang + # NOTE: The tools are organized into five groups of four consisting of one # large and three small executables. This is done to minimize memory load # in parallel builds. Please retain this ordering. |