mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
Fix for [Bug 183863] Makefile generation is switched on for the target build in case of the managed build capable builder is being used for the configuration
This commit is contained in:
parent
8fde3d9842
commit
3e71672938
2 changed files with 20 additions and 4 deletions
|
@ -2065,12 +2065,20 @@ public class Builder extends BuildObject implements IBuilder, IMatchKeyProvider
|
|||
else if(!cfg.supportsBuild(false))
|
||||
return true;
|
||||
}
|
||||
|
||||
Boolean attr = getManagedBuildOnAttribute();
|
||||
if(attr != null)
|
||||
return attr.booleanValue();
|
||||
return true;
|
||||
}
|
||||
|
||||
public Boolean getManagedBuildOnAttribute(){
|
||||
if(managedBuildOn == null){
|
||||
if(superClass != null)
|
||||
return superClass.isManagedBuildOn();
|
||||
return true;
|
||||
return ((Builder)superClass).getManagedBuildOnAttribute();
|
||||
return null;
|
||||
}
|
||||
return managedBuildOn.booleanValue();
|
||||
return managedBuildOn;
|
||||
}
|
||||
|
||||
public void setManagedBuildOn(boolean on) throws CoreException {
|
||||
|
|
|
@ -278,9 +278,17 @@ public class BuilderFactory {
|
|||
args.put(IBuilder.ID, ManagedBuildManager.calculateChildId(cfg.getId(), null));
|
||||
MapStorageElement el = new BuildArgsStorageElement(args, null);
|
||||
Builder builder = new Builder(tCh, el, ManagedBuildManager.getVersion().toString());
|
||||
IBuilder cfgBuilder = cfg.getEditableBuilder();
|
||||
if(builder.getBuildPathAttribute() == null){
|
||||
//set the build path from the cfg settings
|
||||
builder.setBuildPath(cfg.getEditableBuilder().getBuildPath());
|
||||
builder.setBuildPath(cfgBuilder.getBuildPath());
|
||||
}
|
||||
if(builder.getManagedBuildOnAttribute() == null){
|
||||
try {
|
||||
builder.setManagedBuildOn(cfgBuilder.isManagedBuildOn());
|
||||
} catch (CoreException e) {
|
||||
ManagedBuilderCorePlugin.log(e);
|
||||
}
|
||||
}
|
||||
return builder;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue