mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 295690 Other builders should get CDT arguments to build
This commit is contained in:
parent
107aabe04c
commit
36f8c60bec
1 changed files with 5 additions and 5 deletions
|
@ -4690,12 +4690,12 @@ public class ManagedBuildManager extends AbstractCExtension {
|
|||
ICommand[] commands = project.getDescription().getBuildSpec();
|
||||
monitor.beginTask("", commands.length); //$NON-NLS-1$
|
||||
for (int i = 0; i < commands.length; i++) {
|
||||
if (commands[i].getBuilderName().equals(CommonBuilder.BUILDER_ID)) {
|
||||
project.build(IncrementalProjectBuilder.FULL_BUILD, CommonBuilder.BUILDER_ID, map, new SubProgressMonitor(monitor, 1));
|
||||
} else {
|
||||
project.build(IncrementalProjectBuilder.FULL_BUILD, commands[i].getBuilderName(),
|
||||
commands[i].getArguments(), new SubProgressMonitor(monitor, 1));
|
||||
Map newArgs = map;
|
||||
if (!commands[i].getBuilderName().equals(CommonBuilder.BUILDER_ID)) {
|
||||
newArgs = new HashMap(map);
|
||||
newArgs.putAll(commands[i].getArguments());
|
||||
}
|
||||
project.build(IncrementalProjectBuilder.FULL_BUILD, commands[i].getBuilderName(), newArgs, new SubProgressMonitor(monitor, 1));
|
||||
}
|
||||
monitor.done();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue