Skip to content

Commit b628c35

Browse files
committed
Fix Makefile.in grep for use on weaker greps (win32 mingw).
1 parent bea41aa commit b628c35

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

Makefile.in

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -568,17 +568,12 @@ docsnap: doc/rust.pdf
568568
# Testing variables
569569
######################################################################
570570

571-
TEST_XFAILS_BOOT = $(shell grep \
572-
--recursive \
573-
--files-with-matches \
574-
--include=*.rs --include=*.rc \
575-
xfail-boot $(S)src/test)
576-
577-
TEST_XFAILS_STAGE0 = $(shell grep \
578-
--recursive \
579-
--files-with-matches \
580-
--include=*.rs --include=*.rc \
581-
xfail-stage0 $(S)src/test)
571+
ALL_TEST_INPUTS = $(wildcard $(S)src/test/*/*.rs \
572+
$(S)src/test/*/*/*.rs \
573+
$(S)src/test/*/*.rc)
574+
575+
TEST_XFAILS_BOOT = $(shell grep -l xfail-boot $(ALL_TEST_INPUTS))
576+
TEST_XFAILS_STAGE0 = $(shell grep -l xfail-stage0 $(ALL_TEST_INPUTS))
582577

583578
ifdef MINGW_CROSS
584579
TEST_XFAILS_BOOT += $(S)src/test/run-pass/native-mod.rc
@@ -688,10 +683,6 @@ ALL_TEST_SOURCES = $(TEST_CFAIL_SOURCES_BOOT) \
688683
$(TEST_RFAIL_SOURCES_STAGE0) \
689684
$(TEST_RPASS_SOURCES_STAGE0)
690685

691-
ALL_TEST_INPUTS = $(wildcard $(S)src/test/*/*.rs \
692-
$(S)src/test/*/*/*.rs \
693-
$(S)src/test/*/*.rc)
694-
695686
# The test suite currently relies on logging to validate results so
696687
# make sure that logging uses the default configuration
697688
unexport RUST_LOG

0 commit comments

Comments
 (0)