1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/build/org.eclipse.cdt.managedbuilder.core
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
..
.settings Bug 567810: Squash over zealous warning from PDE 2020-10-12 10:14:26 -04:00
META-INF Bug 505882: Fork the GnuMakefileGenerator into non-API 2021-10-18 15:30:08 -04:00
schema Bug 550076 - Use PE64 parser by default 2019-09-09 15:56:07 -04:00
src/org/eclipse/cdt Bug 575490: "No rule" after removing last source file from root 2021-11-02 12:45:10 +01:00
.classpath Bug 562494: Update BREE to Java 11 2020-08-24 17:50:56 -04:00
.options Add missing buildModel tracing option 2015-10-22 15:24:47 -04:00
.project RESOLVED - bug 273636: changes to enable MBS on EFS projects 2009-04-28 12:02:33 +00:00
about.html Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.sh 2018-11-22 20:31:51 +00:00
build.properties Bug 540373: Cleanup: Remove trailing whitespace in properties files 2018-11-23 07:52:26 +00:00
plugin.properties Bug 571566: Document how to choose workspace for headless build 2021-03-01 02:40:52 -05:00
plugin.xml Bug 505882: Fork the GnuMakefileGenerator into non-API 2021-10-18 15:30:08 -04:00