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.

llvm-svn: 126070
This commit is contained in:
Stephen Wilson 2011-02-20 03:51:07 +00:00
parent 30482bc786
commit a16825106c
1 changed files with 3 additions and 1 deletions

View File

@ -840,7 +840,9 @@ $(RecursiveTargets)::
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