Perform optional clang building.
authorMike Stump <mrs@apple.com>
Sat, 24 Jan 2009 00:00:41 +0000 (00:00 +0000)
committerMike Stump <mrs@apple.com>
Sat, 24 Jan 2009 00:00:41 +0000 (00:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62895 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules
tools/Makefile

index 0d4a0c8aedf2c15cb3870d430a71837d3a568cf7..5bddff8e8a221ff8d3de263df6de415a4090c066 100644 (file)
@@ -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
 #-----------------------------------------------------------
index 2726c1f3e43e0ddc4c1c3ee4ca6f9f00b8f846ec..519717ad98de81dc957797105b2454b5574466ec 100644 (file)
@@ -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.