]> git.lizzy.rs Git - rust.git/commitdiff
mk: Add NO_MKFILE_DEPS for turning off rebuild from makefile changes
authorBrian Anderson <banderson@mozilla.com>
Fri, 14 Feb 2014 08:10:06 +0000 (00:10 -0800)
committerBrian Anderson <banderson@mozilla.com>
Sat, 15 Feb 2014 01:45:54 +0000 (17:45 -0800)
Makefile.in
mk/main.mk

index 599984623e2581a13a3313e934e4f9f2894b66b6..1d828f6ee4c457329e242584412ee0c5696b4420 100644 (file)
@@ -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`
index 064b9cc35113e1fb6203a15a919c7ee66299e6cc..723f659b7fdabfd2d25488f892a26d7b6cd1670b 100644 (file)
 # 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))