[llvm-commits] [llvm] r126070 - /llvm/trunk/Makefile.rules

Stephen Wilson wilsons at start.ca
Sat Feb 19 19:51:07 PST 2011


Author: wilsons
Date: Sat Feb 19 21:51:07 2011
New Revision: 126070

URL: http://llvm.org/viewvc/llvm-project?rev=126070&view=rev
Log:

Do not try to descend into optional build directories if they do not
exist.  This makes the build logic symmetric for both the in tree and
out of tree cases.


Modified:
    llvm/trunk/Makefile.rules

Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=126070&r1=126069&r2=126070&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Sat Feb 19 21:51:07 2011
@@ -840,7 +840,9 @@
 else
 $(RecursiveTargets)::
 	$(Verb) for dir in $(OPTIONAL_DIRS); do \
-	  ($(MAKE) -C$$dir $@ ) || exit 1; \
+	  if [ -d $(PROJ_SRC_DIR)/$$dir ]; then\
+	    ($(MAKE) -C$$dir $@ ) || exit 1; \
+	  fi \
 	done
 endif
 endif





More information about the llvm-commits mailing list