[llvm-commits] [PATCH] Ignore missing OPTIONAL_DIRS for in tree builds.
Stephen Wilson
wilsons at start.ca
Fri Feb 18 15:14:59 PST 2011
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.
Index: Makefile.rules
===================================================================
--- Makefile.rules (revision 125955)
+++ Makefile.rules (working copy)
@@ -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