1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52: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){ // if(newBuilder == null){
IBuilder builders[] = ManagedBuildManager.getRealBuilders(); // IBuilder builders[] = ManagedBuildManager.getRealBuilders();
IBuilder tmpB = null; // IBuilder tmpB = null;
for(int i = 0; i < builders.length; i++){ // for(int i = 0; i < builders.length; i++){
IBuilder b = builders[i]; // IBuilder b = builders[i];
if(b.isInternalBuilder()) // if(b.isInternalBuilder())
continue; // continue;
//
//
if(isBuilderCompatible(b)){ // if(isBuilderCompatible(b)){
newBuilder = b; // newBuilder = b;
break; // break;
} else if(!checkCompatibility){ // } else if(!checkCompatibility){
tmpB = b; // tmpB = b;
} // }
} // }
//
if(newBuilder == null){ // if(newBuilder == null){
if(tmpB != null) // if(tmpB != null)
newBuilder = tmpB; // newBuilder = tmpB;
} // }
} // }
} }