Skip to content

Commit

Permalink
mk: Add NO_MKFILE_DEPS for turning off rebuild from makefile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Feb 15, 2014
1 parent 2852fea commit ab17f44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
# (may require `CFG_ENABLE_VALGRIND`)
# * `NO_REBUILD=1` - Don't rebootstrap when testing std
# (and possibly other crates)
# * `NO_MKFILE_DEPS=1` - Don rebuild for modified .mk files
# * `SAVE_TEMPS=1` - Use `--save-temps` flag on all `rustc` invocations
# * `ASM_COMMENTS=1` - Use `-Z asm-comments`
# * `TIME_PASSES=1` - Use `-Z time-passes`
Expand Down
4 changes: 4 additions & 0 deletions mk/main.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
# and include all of the .d files in one fell swoop.
ALL_OBJ_FILES :=

ifneq ($(NO_MAKEFILE_DEPS),)
MKFILE_DEPS :=
else
MKFILE_DEPS := config.stamp $(call rwildcard,$(CFG_SRC_DIR)mk/,*)
endif
NON_BUILD_HOST = $(filter-out $(CFG_BUILD),$(CFG_HOST))
NON_BUILD_TARGET = $(filter-out $(CFG_BUILD),$(CFG_TARGET))

Expand Down

0 comments on commit ab17f44

Please sign in to comment.