mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-04 22:23:28 +02:00
Fix problem with converter code
This commit is contained in:
parent
fb62ab1e5c
commit
0cbe23f5fe
1 changed files with 15 additions and 15 deletions
|
@ -2622,16 +2622,14 @@ public class ManagedBuildManager extends AbstractCExtension implements IScannerI
|
|||
private static boolean checkForMigrationSupport(ManagedBuildInfo buildInfo,
|
||||
boolean forCurrentMbsVersion) {
|
||||
|
||||
IProjectType projectType = null;
|
||||
IConfigurationElement element = null;
|
||||
|
||||
// Get the projectType from buildInfo
|
||||
// Get the managed project from buildInfo
|
||||
IManagedProject managedProject = buildInfo.getManagedProject();
|
||||
projectType = managedProject.getProjectType();
|
||||
|
||||
// walk through the hierarchy of the projectType and
|
||||
// walk through the hierarchy of the project and
|
||||
// call the converters if available for each configuration
|
||||
IConfiguration[] configs = projectType.getConfigurations();
|
||||
IConfiguration[] configs = managedProject.getConfigurations();
|
||||
for (int i = 0; i < configs.length; i++) {
|
||||
IConfiguration configuration = configs[i];
|
||||
IToolChain toolChain = configuration.getToolChain();
|
||||
|
@ -2667,6 +2665,7 @@ public class ManagedBuildManager extends AbstractCExtension implements IScannerI
|
|||
}
|
||||
}
|
||||
IBuilder builder = toolChain.getBuilder();
|
||||
if (builder != null) {
|
||||
if (forCurrentMbsVersion) {
|
||||
element = ((Builder)builder).getCurrentMbsVersionConversionElement();
|
||||
} else {
|
||||
|
@ -2681,6 +2680,7 @@ public class ManagedBuildManager extends AbstractCExtension implements IScannerI
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// If control comes here, it means either there is no converter element
|
||||
// or converters are invoked successfully
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue