Skip to content

Commit

Permalink
mk: add mechanisms for triggering clean-llvm builds from commits
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Jun 28, 2013
1 parent 63afb8c commit 9591832
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,19 @@ ALL_TARGET_RULES = $(foreach target,$(CFG_TARGET_TRIPLES), \
$(foreach host,$(CFG_HOST_TRIPLES), \
all-target-$(target)-host-$(host)))

all: $(ALL_TARGET_RULES) $(GENERATED) docs
all: rustllvm/llvm-auto-clean-stamp \
$(ALL_TARGET_RULES) $(GENERATED) docs

endif

# This is used to independently force an LLVM clean rebuild
# when we changed something not otherwise captured by builtin
# dependencies. In these cases, commit a change that touches
# the stamp in the source dir.
rustllvm/llvm-auto-clean-stamp: $(S)src/rustllvm/llvm-auto-clean-trigger
$(Q)$(MAKE) clean-llvm
touch $@


######################################################################
# Re-configuration
Expand Down
2 changes: 1 addition & 1 deletion mk/clean.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ CLEAN_LLVM_RULES = \
$(foreach target, $(CFG_TARGET_TRIPLES), \
clean-llvm$(target))

.PHONY: clean clean-all clean-misc
.PHONY: clean clean-all clean-misc clean-llvm

clean-all: clean clean-llvm

Expand Down
Empty file.

0 comments on commit 9591832

Please sign in to comment.