]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix missing dependencies for selftests which occasionally causes failed builds.
authorRomain Naour <romain.naour@gmail.com>
Wed, 3 Jun 2020 18:30:57 +0000 (12:30 -0600)
committerJeff Law <law@redhat.com>
Wed, 3 Jun 2020 18:32:53 +0000 (12:32 -0600)
gcc/

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

gcc/Makefile.in

index aab1dbba57b48f835d95ff0043b4f6625f210f37..be11311b60d1423606cf25f1c177e536c427504d 100644 (file)
@@ -1735,6 +1735,10 @@ $(FULL_DRIVER_NAME): ./xgcc$(exeext)
        $(LN_S) $< $@
 
 #\f
+# 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.
 
 # The following targets define the interface between us and the languages.
@@ -2010,8 +2014,6 @@ DEVNULL=$(if $(findstring mingw,$(build)),nul,/dev/null)
 SELFTEST_FLAGS = -nostdinc $(DEVNULL) -S -o $(DEVNULL) \
        -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,
 # 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