1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-28 02:33:18 +02:00
cdt/build/org.eclipse.cdt.managedbuilder.core.tests/resources/test40Projects
Christian Walther f138ad10e8 Bug 575490: "No rule" after removing last source file from root
Include the top-level subdir.mk only when one was actually generated
(i.e. when there are source files there), just like for all other
subdir.mk, otherwise a stale one from earlier when there were source
files that have since been removed may be picked up, causing "No rule to
make target" errors.

In some cases (from bug 303953), the removal would be noticed and the
stale subdir.mk be overwritten by a correct empty one, avoiding the
error, but not in the following cases:
- When CommonBuilder.performCleanning() decides that a full rebuild is
needed, regenerateMakefiles() is called instead of generateMakefiles(),
which doesn't get the delta.
- When the refresh in which Eclipse notices the removed source file
happens as part of a build (one that probably failed because the
makefiles weren't updated yet), the next build after that apparently
does not get the delta containing the removal anymore.

Change-Id: Id15b424f02dd5c513d2124620c0c8699d61874fd
Signed-off-by: Christian Walther <walther@indel.ch>
2021-11-02 12:45:10 +01:00
..
test_40 Bug 575490: "No rule" after removing last source file from root 2021-11-02 12:45:10 +01:00
test_40_pathconverter 1. language setting entries calculation fixes 2007-06-05 13:47:26 +00:00