mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
Check only on the kind for now, until we have a
better way to deal with the deltas.
This commit is contained in:
parent
4956853ad0
commit
c5bb4d2bde
1 changed files with 4 additions and 9 deletions
|
@ -56,19 +56,14 @@ public class CBuilder extends ACBuilder {
|
||||||
*/
|
*/
|
||||||
protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException {
|
protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException {
|
||||||
IResourceDelta delta= getDelta(getProject());
|
IResourceDelta delta= getDelta(getProject());
|
||||||
boolean isFullBuild= (kind == IncrementalProjectBuilder.FULL_BUILD) || (delta == null);
|
boolean isFullBuild= (kind == IncrementalProjectBuilder.FULL_BUILD);
|
||||||
if (isFullBuild) {
|
if (isFullBuild) {
|
||||||
invokeMake(true, monitor);
|
invokeMake(true, monitor);
|
||||||
} else {
|
} else {
|
||||||
IResource res= delta.getResource();
|
/* Take the code in the QNX Builder todo project dependencies. */
|
||||||
//if (res != null && delta.getKind() != 0) {
|
invokeMake(false, monitor);
|
||||||
if (res != null) {
|
|
||||||
IProject currProject= getProject();
|
|
||||||
if (currProject.equals(res.getProject())) {
|
|
||||||
invokeMake(false, monitor);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
forgetLastBuiltState();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue