1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Fix for [Bug 179732] [Build] External builder should only be selectable when added to toolchain

This commit is contained in:
Mikhail Sennikovsky 2007-03-29 07:29:14 +00:00
parent 02af47ffb6
commit 4573a81a54

View file

@ -1948,28 +1948,28 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
}
}
if(newBuilder == null){
IBuilder builders[] = ManagedBuildManager.getRealBuilders();
IBuilder tmpB = null;
for(int i = 0; i < builders.length; i++){
IBuilder b = builders[i];
if(b.isInternalBuilder())
continue;
if(isBuilderCompatible(b)){
newBuilder = b;
break;
} else if(!checkCompatibility){
tmpB = b;
}
}
if(newBuilder == null){
if(tmpB != null)
newBuilder = tmpB;
}
}
// if(newBuilder == null){
// IBuilder builders[] = ManagedBuildManager.getRealBuilders();
// IBuilder tmpB = null;
// for(int i = 0; i < builders.length; i++){
// IBuilder b = builders[i];
// if(b.isInternalBuilder())
// continue;
//
//
// if(isBuilderCompatible(b)){
// newBuilder = b;
// break;
// } else if(!checkCompatibility){
// tmpB = b;
// }
// }
//
// if(newBuilder == null){
// if(tmpB != null)
// newBuilder = tmpB;
// }
// }
}