summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-08 22:58:34 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-08 22:58:34 +0000
commit4e197480e153518237c50105a9bd68db2676cee3 (patch)
treeb24ad0d77730857c96816edb600c3c3ab922a484 /llvm
parent8f30caf5494bf7225388cba1df7c221ae87dcb2d (diff)
downloadbcm5719-llvm-4e197480e153518237c50105a9bd68db2676cee3.tar.gz
bcm5719-llvm-4e197480e153518237c50105a9bd68db2676cee3.zip
Implement the LLVM_DO_NOT_BUILD feature. If a file of that name is
present in a directory that LLVM normally builds, it will skip building the directory entirely. This is useful for allowing a bunch of projects to live in the source tree but not be compiled from time to time. llvm-svn: 18671
Diffstat (limited to 'llvm')
-rw-r--r--llvm/Makefile.rules17
1 files changed, 12 insertions, 5 deletions
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules
index 9abc4afc235..8e353b1f1a5 100644
--- a/llvm/Makefile.rules
+++ b/llvm/Makefile.rules
@@ -231,7 +231,6 @@ ifdef TOOL_VERBOSE
CXX.Flags += -v
LD.Flags += -v
VERBOSE := 1
-else
endif
# Adjust settings for verbose mode
@@ -370,7 +369,9 @@ $(RecursiveTargets)::
$(MKDIR) $$dir; \
cp $(BUILD_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
fi; \
- ($(MAKE) -C $$dir $@ ) || exit 1; \
+ if [ ! -f $$dir/LLVM_DO_NOT_BUILD ]; then \
+ ($(MAKE) -C $$dir $@ ) || exit 1; \
+ fi ; \
done
endif
@@ -385,7 +386,9 @@ $(RecursiveTargets)::
$(MKDIR) $$dir; \
cp $(BUILD_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
fi; \
- ($(MAKE) -C $$dir $@ ) || exit 0; \
+ if [ ! -f $$dir/LLVM_DO_NOT_BUILD ]; then \
+ ($(MAKE) -C $$dir $@ ) || exit 0; \
+ fi ; \
done
endif
@@ -411,7 +414,9 @@ $(ParallelTargets) :
$(MKDIR) $(@D); \
cp $(BUILD_SRC_DIR)/$(@D)/Makefile $(@D)/Makefile; \
fi; \
- $(MAKE) -C $(@D) $(subst $(@D)/.make,,$@)
+ if [ ! -f $$dir/LLVM_DO_NOT_BUILD ]; then \
+ $(MAKE) -C $(@D) $(subst $(@D)/.make,,$@) ; \
+ fi
endif
#---------------------------------------------------------
@@ -429,7 +434,9 @@ $(RecursiveTargets)::
$(MKDIR) $$dir; \
cp $(BUILD_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
fi; \
- ($(MAKE) -C$$dir $@ ) || exit 1; \
+ if [ ! -f $$dir/LLVM_DO_NOT_BUILD ]; then \
+ ($(MAKE) -C$$dir $@ ) || exit 1; \
+ fi ; \
fi \
done
endif
OpenPOWER on IntegriCloud