From: Mike Stump Date: Sat, 24 Jan 2009 00:00:41 +0000 (+0000) Subject: Perform optional clang building. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0a26891ce9b6de840c087d73c04324729c3d1a8b;p=oota-llvm.git Perform optional clang building. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62895 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Makefile.rules b/Makefile.rules index 0d4a0c8aedf..5bddff8e8a2 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -612,6 +612,13 @@ $(RecursiveTargets):: done 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 #----------------------------------------------------------- diff --git a/tools/Makefile b/tools/Makefile index 2726c1f3e43..519717ad98d 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.