mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
The fix for the bug#65148
This commit is contained in:
parent
f809cd9fcd
commit
423dc95621
1 changed files with 7 additions and 0 deletions
|
@ -469,6 +469,13 @@ public class GeneratedMakefileBuilder extends ACBuilder {
|
|||
monitor = new NullProgressMonitor();
|
||||
}
|
||||
|
||||
checkCancel(monitor);
|
||||
//If the previous builder invocation was cancelled, generated files might be corrupted
|
||||
//in case one or more of the generated makefiles (e.g. dep files) are corrupted,
|
||||
//the builder invocation might fail because of the possible syntax errors, so e.g. "make clean" will not work
|
||||
//we need to explicitly clean the generated directories
|
||||
clean(new SubProgressMonitor(monitor, IProgressMonitor.UNKNOWN));
|
||||
|
||||
// Regenerate the makefiles for this project
|
||||
checkCancel(monitor);
|
||||
String statusMsg = ManagedMakeMessages.getFormattedString("ManagedMakeBuilder.message.rebuild.makefiles", getProject().getName()); //$NON-NLS-1$
|
||||
|
|
Loading…
Add table
Reference in a new issue