Commit e86ae541 by Romain Naour Committed by Richard Biener

Fix missing dependencies for selftests which occasionally causes failed builds.

gcc/

	* Makefile.in (SELFTEST_DEPS): Move before including language makefile
	fragments.

(cherry picked from commit b19d8aac15649f31a7588b2634411a1922906ea8)
parent 8e6c87b2
...@@ -1726,6 +1726,10 @@ $(FULL_DRIVER_NAME): ./xgcc ...@@ -1726,6 +1726,10 @@ $(FULL_DRIVER_NAME): ./xgcc
$(LN_S) $< $@ $(LN_S) $< $@
# #
# SELFTEST_DEPS need to be set before including language makefile fragments.
# Otherwise $(SELFTEST_DEPS) is empty when used from <LANG>/Make-lang.in.
SELFTEST_DEPS = $(GCC_PASSES) stmp-int-hdrs $(srcdir)/testsuite/selftests
# Language makefile fragments. # Language makefile fragments.
# The following targets define the interface between us and the languages. # The following targets define the interface between us and the languages.
...@@ -2001,8 +2005,6 @@ DEVNULL=$(if $(findstring mingw,$(build)),nul,/dev/null) ...@@ -2001,8 +2005,6 @@ DEVNULL=$(if $(findstring mingw,$(build)),nul,/dev/null)
SELFTEST_FLAGS = -nostdinc $(DEVNULL) -S -o $(DEVNULL) \ SELFTEST_FLAGS = -nostdinc $(DEVNULL) -S -o $(DEVNULL) \
-fself-test=$(srcdir)/testsuite/selftests -fself-test=$(srcdir)/testsuite/selftests
SELFTEST_DEPS = $(GCC_PASSES) stmp-int-hdrs $(srcdir)/testsuite/selftests
# Run the selftests during the build once we have a driver and the frontend, # Run the selftests during the build once we have a driver and the frontend,
# so that self-test failures are caught as early as possible. # so that self-test failures are caught as early as possible.
# Use "s-selftest-FE" to ensure that we only run the selftests if the # Use "s-selftest-FE" to ensure that we only run the selftests if the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment