Skip to content

Commit b31fee8

Browse files
committed
mk: fix some undefined variable warnings
Some of this is scary stuff. Probably time to lint against this. Found with `make --warn-undefined-variables`.
1 parent 5446139 commit b31fee8

13 files changed

+68
-60
lines changed

mk/cfg/aarch64-linux-android.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# aarch64-linux-android configuration
2-
# CROSS_PREFIX_aarch64-linux-android-
32
CC_aarch64-linux-android=$(CFG_AARCH64_LINUX_ANDROID_NDK)/bin/aarch64-linux-android-gcc
43
CXX_aarch64-linux-android=$(CFG_AARCH64_LINUX_ANDROID_NDK)/bin/aarch64-linux-android-g++
54
CPP_aarch64-linux-android=$(CFG_AARCH64_LINUX_ANDROID_NDK)/bin/aarch64-linux-android-gcc -E

mk/cfg/x86_64-apple-ios.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ CFG_UNIXY_x86_64-apple-ios := 1
2929
CFG_LDPATH_x86_64-apple-ios :=
3030
CFG_RUN_x86_64-apple-ios = $(2)
3131
CFG_RUN_TARG_x86_64-apple-ios = $(call CFG_RUN_x86_64-apple-ios,,$(2))
32-
CFG_GNU_TRIPLE_i386-apple-ios := x86_64-apple-ios
32+
CFG_GNU_TRIPLE_x86_64-apple-ios := x86_64-apple-ios

mk/cfg/x86_64-unknown-bitrig.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CFG_LIB_GLOB_x86_64-unknown-bitrig=lib$(1)-*.so
99
CFG_LIB_DSYM_GLOB_x86_64-unknown-bitrig=$(1)-*.dylib.dSYM
1010
CFG_JEMALLOC_CFLAGS_x86_64-unknown-bitrig := -m64 -I/usr/include $(CFLAGS)
1111
CFG_GCCISH_CFLAGS_x86_64-unknown-bitrig := -Wall -Werror -fPIC -m64 -I/usr/include $(CFLAGS)
12-
CFG_GCCISH_LINK_FLAGS_x86_64-unknown-bitrig := -shared -pic -pthread -m64 $(LDFLAGS)
12+
CFG_GCCISH_LINK_FLAGS_x86_64-unknown-bitrig := -shared -pic -pthread -m64
1313
CFG_GCCISH_DEF_FLAG_x86_64-unknown-bitrig := -Wl,--export-dynamic,--dynamic-list=
1414
CFG_LLC_FLAGS_x86_64-unknown-bitrig :=
1515
CFG_INSTALL_NAME_x86_64-unknown-bitrig =

mk/crates.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ ONLY_RLIB_alloc_system := 1
138138
# Documented-by-default crates
139139
DOC_CRATES := std alloc collections core libc rustc_unicode
140140

141-
ifeq ($(CFG_DISABLE_JEMALLOC),)
141+
ifdef CFG_DISABLE_JEMALLOC
142+
RUSTFLAGS_rustc_back := --cfg disable_jemalloc
143+
else
142144
TARGET_CRATES += alloc_jemalloc
143145
DEPS_std += alloc_jemalloc
144146
DEPS_alloc_jemalloc := core libc native:jemalloc
145147
ONLY_RLIB_alloc_jemalloc := 1
146-
else
147-
RUSTFLAGS_rustc_back := --cfg disable_jemalloc
148148
endif
149149

150150
################################################################################

mk/docs.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ DOC_L10N_TARGETS :=
7171

7272
# If NO_REBUILD is set then break the dependencies on rustdoc so we
7373
# build the documentation without having to rebuild rustdoc.
74-
ifeq ($(NO_REBUILD),)
74+
ifndef NO_REBUILD
7575
HTML_DEPS := $(RUSTDOC_EXE)
7676
else
7777
HTML_DEPS :=
@@ -152,7 +152,7 @@ define DEF_LIB_DOC
152152

153153
# If NO_REBUILD is set then break the dependencies on rustdoc so we
154154
# build crate documentation without having to rebuild rustdoc.
155-
ifeq ($(NO_REBUILD),)
155+
ifndef NO_REBUILD
156156
LIB_DOC_DEP_$(1) = \
157157
$$(CRATEFILE_$(1)) \
158158
$$(RSINPUTS_$(1)) \

mk/grammar.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ $(BG)RustLexer.class: $(BG) $(SG)RustLexer.g4
4141

4242
check-build-lexer-verifier: $(BG)verify
4343

44-
ifeq ($(NO_REBUILD),)
45-
VERIFY_DEPS := rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.rustc
44+
ifndef NO_REBUILD
45+
VERIFY_DEPS := rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.rustc
4646
else
4747
VERIFY_DEPS :=
4848
endif

mk/host.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# $(5) - the name of the crate being processed
1919
define CP_HOST_STAGE_N_CRATE
2020

21-
ifeq ($$(ONLY_RLIB_$(5)),)
21+
ifndef ONLY_RLIB_$(5)
2222
$$(HLIB$(2)_H_$(4))/stamp.$(5): \
2323
$$(TLIB$(1)_T_$(3)_H_$(4))/stamp.$(5) \
2424
$$(RUST_DEPS_$(5):%=$$(HLIB$(2)_H_$(4))/stamp.%) \

mk/llvm.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ $$(LLVM_STAMP_$(1)): $$(S)src/rustllvm/llvm-auto-clean-trigger
7171
@$$(call E, make: done cleaning llvm)
7272
touch -r $$@.start_time $$@ && rm $$@.start_time
7373

74-
ifeq ($$(CFG_ENABLE_LLVM_STATIC_STDCPP),1)
74+
ifdef CFG_ENABLE_LLVM_STATIC_STDCPP
7575
LLVM_STDCPP_RUSTFLAGS_$(1) = -L "$$(dir $$(shell $$(CC_$(1)) $$(CFG_GCCISH_CFLAGS_$(1)) \
7676
-print-file-name=lib$(CFG_STDCPP_NAME).a))"
7777
else
@@ -95,9 +95,6 @@ endef
9595
$(foreach host,$(CFG_HOST), \
9696
$(eval $(call DEF_LLVM_RULES,$(host))))
9797

98-
$(foreach host,$(CFG_HOST), \
99-
$(eval LLVM_CONFIGS := $(LLVM_CONFIGS) $(LLVM_CONFIG_$(host))))
100-
10198
# This can't be done in target.mk because it's included before this file.
10299
define LLVM_LINKAGE_DEPS
103100
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.rustc_llvm: $$(LLVM_LINKAGE_PATH_$(2))

mk/main.mk

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ CFG_INFO := $(info cfg: version $(CFG_VERSION))
8686

8787
MKFILE_DEPS := config.stamp $(call rwildcard,$(CFG_SRC_DIR)mk/,*)
8888
MKFILES_FOR_TARBALL:=$(MKFILE_DEPS)
89-
ifneq ($(NO_MKFILE_DEPS),)
89+
ifdef NO_MKFILE_DEPS
9090
MKFILE_DEPS :=
9191
endif
9292
NON_BUILD_HOST = $(filter-out $(CFG_BUILD),$(CFG_HOST))
9393
NON_BUILD_TARGET = $(filter-out $(CFG_BUILD),$(CFG_TARGET))
9494

95-
ifneq ($(MAKE_RESTARTS),)
95+
ifdef MAKE_RESTARTS
9696
CFG_INFO := $(info cfg: make restarts: $(MAKE_RESTARTS))
9797
endif
9898

@@ -107,28 +107,40 @@ ifneq ($(wildcard $(NON_BUILD_TARGET)),)
107107
CFG_INFO := $(info cfg: non-build target triples $(NON_BUILD_TARGET))
108108
endif
109109

110-
CFG_RUSTC_FLAGS := $(RUSTFLAGS)
110+
CFG_RUSTC_FLAGS :=
111+
ifdef RUSTFLAGS
112+
CFG_RUSTC_FLAGS += $(RUSTFLAGS)
113+
endif
111114
CFG_GCCISH_CFLAGS :=
112115
CFG_GCCISH_LINK_FLAGS :=
113116

114117
CFG_JEMALLOC_FLAGS :=
118+
ifdef JEMALLOC_FLAGS
119+
CFG_JEMALLOC_FLAGS += $(JEMALLOC_FLAGS)
120+
endif
115121

116122
ifdef CFG_DISABLE_OPTIMIZE
117123
$(info cfg: disabling rustc optimization (CFG_DISABLE_OPTIMIZE))
118-
CFG_RUSTC_FLAGS +=
119124
CFG_JEMALLOC_FLAGS += --enable-debug
120125
else
121126
# The rtopt cfg turns off runtime sanity checks
122127
CFG_RUSTC_FLAGS += -O --cfg rtopt
123128
endif
124129

125-
CFG_JEMALLOC_FLAGS += $(JEMALLOC_FLAGS)
126-
127130
ifdef CFG_ENABLE_DEBUG_ASSERTIONS
128131
$(info cfg: enabling debug assertions (CFG_ENABLE_DEBUG_ASSERTIONS))
129132
CFG_RUSTC_FLAGS += -C debug-assertions=on
130133
endif
131134

135+
define DEF_RUSTFLAGS_STAGE
136+
RUSTFLAGS_STAGE$(1) :=
137+
endef
138+
139+
STAGES = 0 1 2 3
140+
141+
$(foreach stage,$(STAGES), \
142+
$(eval $(call DEF_RUSTFLAGS_STAGE,$(stage))))
143+
132144
ifdef CFG_ENABLE_DEBUGINFO
133145
$(info cfg: enabling debuginfo (CFG_ENABLE_DEBUGINFO))
134146
CFG_RUSTC_FLAGS += -g
@@ -186,9 +198,9 @@ endif
186198

187199

188200
ifndef CFG_DISABLE_VALGRIND_RPASS
189-
$(info cfg: enabling valgrind run-pass tests (CFG_ENABLE_VALGRIND_RPASS))
201+
$(info cfg: enabling valgrind run-pass tests)
190202
$(info cfg: valgrind-rpass command set to $(CFG_VALGRIND))
191-
CFG_VALGRIND_RPASS :=$(CFG_VALGRIND)
203+
CFG_VALGRIND_RPASS := $(CFG_VALGRIND)
192204
else
193205
$(info cfg: disabling valgrind run-pass tests)
194206
CFG_VALGRIND_RPASS :=
@@ -372,8 +384,6 @@ export CFG_BOOTSTRAP_KEY
372384
TRIPLE_TO_DEBUGGER_SCRIPT_SETTING=\
373385
$(if $(findstring windows,$(1)),none,$(if $(findstring darwin,$(1)),lldb,gdb))
374386

375-
STAGES = 0 1 2 3
376-
377387
define SREQ
378388
# $(1) is the stage number
379389
# $(2) is the target triple

mk/platform.mk

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,11 @@ AR := ar
9999
define SET_FROM_CFG
100100
ifdef CFG_$(1)
101101
ifeq ($(origin $(1)),undefined)
102-
$$(info cfg: using $(1)=$(CFG_$(1)) (CFG_$(1)))
103-
$(1)=$(CFG_$(1))
104-
endif
105-
ifeq ($(origin $(1)),default)
106-
$$(info cfg: using $(1)=$(CFG_$(1)) (CFG_$(1)))
107-
$(1)=$(CFG_$(1))
102+
$$(info cfg: using $(1)=$$(CFG_$(1)) (CFG_$(1)))
103+
$(1)=$$(CFG_$(1))
104+
else ifeq ($(origin $(1)),default)
105+
$$(info cfg: using $(1)=$$(CFG_$(1)) (CFG_$(1)))
106+
$(1)=$$(CFG_$(1))
108107
endif
109108
endif
110109
endef
@@ -118,7 +117,9 @@ include $(wildcard $(CFG_SRC_DIR)mk/cfg/*.mk)
118117

119118
define ADD_INSTALLED_OBJECTS
120119
INSTALLED_OBJECTS_$(1) += $$(CFG_INSTALLED_OBJECTS_$(1))
121-
REQUIRED_OBJECTS_$(1) += $$(CFG_THIRD_PARTY_OBJECTS_$(1))
120+
ifdef CFG_THIRD_PARTY_OBJECTS_$(1)
121+
REQUIRED_OBJECTS_$(1) += $$(CFG_THIRD_PARTY_OBJECTS_$(1))
122+
endif
122123
INSTALLED_OBJECTS_$(1) += $$(call CFG_STATIC_LIB_NAME_$(1),compiler-rt)
123124
REQUIRED_OBJECTS_$(1) += $$(call CFG_STATIC_LIB_NAME_$(1),compiler-rt)
124125
endef
@@ -180,15 +181,15 @@ define CFG_MAKE_TOOLCHAIN
180181
# Prepend the tools with their prefix if cross compiling
181182
ifneq ($(CFG_BUILD),$(1))
182183
ifneq ($$(findstring msvc,$(1)),msvc)
183-
CC_$(1)=$(CROSS_PREFIX_$(1))$(CC_$(1))
184-
CXX_$(1)=$(CROSS_PREFIX_$(1))$(CXX_$(1))
185-
CPP_$(1)=$(CROSS_PREFIX_$(1))$(CPP_$(1))
186-
AR_$(1)=$(CROSS_PREFIX_$(1))$(AR_$(1))
187-
LINK_$(1)=$(CROSS_PREFIX_$(1))$(LINK_$(1))
188-
RUSTC_CROSS_FLAGS_$(1)=-C linker=$$(call FIND_COMPILER,$$(LINK_$(1))) \
189-
-C ar=$$(call FIND_COMPILER,$$(AR_$(1))) $(RUSTC_CROSS_FLAGS_$(1))
190-
191-
RUSTC_FLAGS_$(1)=$$(RUSTC_CROSS_FLAGS_$(1)) $(RUSTC_FLAGS_$(1))
184+
CC_$(1)=$(CROSS_PREFIX_$(1))$(CC_$(1))
185+
CXX_$(1)=$(CROSS_PREFIX_$(1))$(CXX_$(1))
186+
CPP_$(1)=$(CROSS_PREFIX_$(1))$(CPP_$(1))
187+
AR_$(1)=$(CROSS_PREFIX_$(1))$(AR_$(1))
188+
LINK_$(1)=$(CROSS_PREFIX_$(1))$(LINK_$(1))
189+
RUSTC_CROSS_FLAGS_$(1)=-C linker=$$(call FIND_COMPILER,$$(LINK_$(1))) \
190+
-C ar=$$(call FIND_COMPILER,$$(AR_$(1))) $(RUSTC_CROSS_FLAGS_$(1))
191+
192+
RUSTC_FLAGS_$(1)=$$(RUSTC_CROSS_FLAGS_$(1)) $(RUSTC_FLAGS_$(1))
192193
endif
193194
endif
194195

mk/rt.mk

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ $$(RT_OUTPUT_DIR_$(1))/$$(NATIVE_$(2)_$(1)): $$(OBJS_$(2)_$(1))
107107

108108
endef
109109

110-
$(foreach target,$(CFG_TARGET), \
111-
$(eval $(call RUNTIME_RULES,$(target))))
112110
$(foreach lib,$(NATIVE_LIBS), \
113111
$(foreach target,$(CFG_TARGET), \
114112
$(eval $(call THIRD_PARTY_LIB,$(target),$(lib)))))
@@ -171,7 +169,7 @@ endif
171169

172170
# See #17183 for details, this file is touched during the build process so we
173171
# don't want to consider it as a dependency.
174-
JEMALLOC_DEPS := $(filter-out $(S)src/jemalloc/VERSION,$(JEMALLOC_DEPS))
172+
JEMALLOC_DEPS := $(filter-out $(S)src/jemalloc/VERSION,$$(JEMALLOC_DEPS))
175173

176174
JEMALLOC_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),jemalloc)
177175
ifeq ($$(CFG_WINDOWSY_$(1)),1)

mk/target.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ define TARGET_RUSTRT_STARTUP_OBJ
146146
$$(TLIB$(1)_T_$(2)_H_$(3))/$(4).o: \
147147
$(S)src/rtstartup/$(4).rs \
148148
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.core \
149-
$$(HSREQ$(1)_T_$(2)_H_$(3)) \
149+
$$(HSREQ$(1)_H_$(3)) \
150150
| $$(TBIN$(1)_T_$(2)_H_$(3))/
151151
@$$(call E, rustc: $$@)
152152
$$(STAGE$(1)_T_$(2)_H_$(3)) --emit=obj -o $$@ $$<
153153

154-
ifeq ($$(CFG_RUSTRT_HAS_STARTUP_OBJS_$(2)), 1)
154+
ifdef CFG_RUSTRT_HAS_STARTUP_OBJS_$(2)
155155
# Add dependencies on Rust startup objects to all crates that depend on core.
156156
# This ensures that they are built after core (since they depend on it),
157157
# but before everything else (since they are needed for linking dylib crates).

mk/tests.mk

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ TEST_CRATES = $(TEST_TARGET_CRATES) $(TEST_HOST_CRATES)
3636
# Environment configuration
3737
######################################################################
3838

39+
TESTARGS :=
40+
3941
# The arguments to all test runners
4042
ifdef TESTNAME
4143
TESTARGS += $(TESTNAME)
@@ -48,11 +50,15 @@ endif
4850
# Arguments to the cfail/rfail/rpass/bench tests
4951
ifdef CFG_VALGRIND
5052
CTEST_RUNTOOL = --runtool "$(CFG_VALGRIND)"
53+
else
54+
CTEST_RUNTOOL =
5155
endif
5256

5357
# Arguments to the perf tests
5458
ifdef CFG_PERF_TOOL
5559
CTEST_PERF_RUNTOOL = --runtool "$(CFG_PERF_TOOL)"
60+
else
61+
CTEST_PERF_RUNTOOL =
5662
endif
5763

5864
CTEST_TESTARGS := $(TESTARGS)
@@ -125,17 +131,15 @@ $(foreach target,$(CFG_TARGET), \
125131
$(if $(findstring adb,$(CFG_ADB)), \
126132
$(if $(findstring device,$(shell $(CFG_ADB) devices 2>/dev/null | grep -E '^[:_A-Za-z0-9-]+[[:blank:]]+device')), \
127133
$(info check: android device attached) \
128-
$(eval $(call DEF_ADB_DEVICE_STATUS, true)), \
134+
$(eval $(call DEF_ADB_DEVICE_STATUS, 1)), \
129135
$(info check: android device not attached) \
130-
$(eval $(call DEF_ADB_DEVICE_STATUS, false)) \
131136
), \
132137
$(info check: adb not found) \
133-
$(eval $(call DEF_ADB_DEVICE_STATUS, false)) \
134138
), \
135139
) \
136140
)
137141

138-
ifeq ($(CFG_ADB_DEVICE_STATUS),true)
142+
ifdef CFG_ADB_DEVICE_STATUS
139143
CFG_ADB_TEST_DIR=/data/tmp
140144

141145
$(info check: android device test dir $(CFG_ADB_TEST_DIR) ready \
@@ -154,10 +158,11 @@ else
154158
CFG_ADB_TEST_DIR=
155159
endif
156160

161+
DOC_NAMES :=
157162
# $(1) - name of doc test
158163
# $(2) - file of the test
159164
define DOCTEST
160-
DOC_NAMES := $$(DOC_NAMES) $(1)
165+
DOC_NAMES += $(1)
161166
DOCFILE_$(1) := $(2)
162167
endef
163168

@@ -374,12 +379,11 @@ define TEST_RUNNER
374379
# If NO_REBUILD is set then break the dependencies on everything but
375380
# the source files so we can test crates without rebuilding any of the
376381
# parent crates.
377-
ifeq ($(NO_REBUILD),)
382+
ifndef NO_REBUILD
378383
TESTDEP_$(1)_$(2)_$(3)_$(4) = $$(SREQ$(1)_T_$(2)_H_$(3)) \
379384
$$(foreach crate,$$(TARGET_CRATES), \
380385
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$$(crate)) \
381386
$$(CRATE_FULLDEPS_$(1)_T_$(2)_H_$(3)_$(4))
382-
383387
else
384388
TESTDEP_$(1)_$(2)_$(3)_$(4) = $$(RSINPUTS_$(4))
385389
endif
@@ -723,22 +727,22 @@ check-stage$(1)-T-$(2)-H-$(3)-$(4)-exec: $$(call TEST_OK_FILE,$(1),$(2),$(3),$(4
723727
# (Encoded as a separate variable because GNU make does not have a
724728
# good way to express OR on ifeq commands)
725729

726-
ifneq ($$(CTEST_DISABLE_$(4)),)
730+
ifdef CTEST_DISABLE_$(4)
727731
# Test suite is disabled for all configured targets.
728732
CTEST_DONT_RUN_$(1)-T-$(2)-H-$(3)-$(4) := $$(CTEST_DISABLE_$(4))
729733
else
730734
# else, check if non-self-hosted target (i.e. target not-in hosts) ...
731735
ifeq ($$(findstring $(2),$$(CFG_HOST)),)
732736
# ... if so, then check if this test suite is disabled for non-selfhosts.
733-
ifneq ($$(CTEST_DISABLE_NONSELFHOST_$(4)),)
737+
ifdef CTEST_DISABLE_NONSELFHOST_$(4)
734738
# Test suite is disabled for this target.
735739
CTEST_DONT_RUN_$(1)-T-$(2)-H-$(3)-$(4) := $$(CTEST_DISABLE_NONSELFHOST_$(4))
736740
endif
737741
endif
738742
# Neither DISABLE nor DISABLE_NONSELFHOST is set ==> okay, run the test.
739743
endif
740744

741-
ifeq ($$(CTEST_DONT_RUN_$(1)-T-$(2)-H-$(3)-$(4)),)
745+
ifndef CTEST_DONT_RUN_$(1)-T-$(2)-H-$(3)-$(4)
742746
$$(call TEST_OK_FILE,$(1),$(2),$(3),$(4)): \
743747
$$(TEST_SREQ$(1)_T_$(2)_H_$(3)) \
744748
$$(CTEST_DEPS_$(4)_$(1)-T-$(2)-H-$(3))
@@ -849,7 +853,7 @@ check-stage$(1)-T-$(2)-H-$(3)-doc-$(4)-exec: $$(call TEST_OK_FILE,$(1),$(2),$(3)
849853
# If NO_REBUILD is set then break the dependencies on everything but
850854
# the source files so we can test documentation without rebuilding
851855
# rustdoc etc.
852-
ifeq ($(NO_REBUILD),)
856+
ifndef NO_REBUILD
853857
DOCTESTDEP_$(1)_$(2)_$(3)_$(4) = \
854858
$$(DOCFILE_$(4)) \
855859
$$(TEST_SREQ$(1)_T_$(2)_H_$(3)) \
@@ -884,7 +888,7 @@ define DEF_CRATE_DOC_TEST
884888
# If NO_REBUILD is set then break the dependencies on everything but
885889
# the source files so we can test crate documentation without
886890
# rebuilding any of the parent crates.
887-
ifeq ($(NO_REBUILD),)
891+
ifndef NO_REBUILD
888892
CRATEDOCTESTDEP_$(1)_$(2)_$(3)_$(4) = \
889893
$$(TEST_SREQ$(1)_T_$(2)_H_$(3)) \
890894
$$(CRATE_FULLDEPS_$(1)_T_$(2)_H_$(3)_$(4)) \
@@ -949,8 +953,7 @@ TEST_GROUPS = \
949953
pretty-rfail-full \
950954
pretty-rfail \
951955
pretty-bench \
952-
pretty-pretty \
953-
$(NULL)
956+
pretty-pretty
954957

955958
define DEF_CHECK_FOR_STAGE_AND_TARGET_AND_HOST
956959
check-stage$(1)-T-$(2)-H-$(3): check-stage$(1)-T-$(2)-H-$(3)-exec

0 commit comments

Comments
 (0)