Skip to content

Commit ab17f44

Browse files
committed
mk: Add NO_MKFILE_DEPS for turning off rebuild from makefile changes
1 parent 2852fea commit ab17f44

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Makefile.in

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
# (may require `CFG_ENABLE_VALGRIND`)
3838
# * `NO_REBUILD=1` - Don't rebootstrap when testing std
3939
# (and possibly other crates)
40+
# * `NO_MKFILE_DEPS=1` - Don rebuild for modified .mk files
4041
# * `SAVE_TEMPS=1` - Use `--save-temps` flag on all `rustc` invocations
4142
# * `ASM_COMMENTS=1` - Use `-Z asm-comments`
4243
# * `TIME_PASSES=1` - Use `-Z time-passes`

mk/main.mk

+4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
# and include all of the .d files in one fell swoop.
1313
ALL_OBJ_FILES :=
1414

15+
ifneq ($(NO_MAKEFILE_DEPS),)
16+
MKFILE_DEPS :=
17+
else
1518
MKFILE_DEPS := config.stamp $(call rwildcard,$(CFG_SRC_DIR)mk/,*)
19+
endif
1620
NON_BUILD_HOST = $(filter-out $(CFG_BUILD),$(CFG_HOST))
1721
NON_BUILD_TARGET = $(filter-out $(CFG_BUILD),$(CFG_TARGET))
1822

0 commit comments

Comments
 (0)