mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-01 12:43:26 +02:00
Checked in the fix for the bug# 105754
This commit is contained in:
parent
7860f3c765
commit
9e2941d120
1 changed files with 10 additions and 12 deletions
|
@ -405,10 +405,11 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
|
||||||
*/
|
*/
|
||||||
public String[] getLibsForConfiguration(String extension) {
|
public String[] getLibsForConfiguration(String extension) {
|
||||||
Vector libs = new Vector();
|
Vector libs = new Vector();
|
||||||
ITool[] tools = getFilteredTools();
|
ITool tool = getDefaultConfiguration().getTargetTool();
|
||||||
for (int index = 0; index < tools.length; index++) {
|
if(tool == null)
|
||||||
ITool tool = tools[index];
|
tool = getToolFromOutputExtension(extension);
|
||||||
if (tool.producesFileType(extension)) {
|
|
||||||
|
if(tool != null){
|
||||||
IOption[] opts = tool.getOptions();
|
IOption[] opts = tool.getOptions();
|
||||||
// Look for the lib option type
|
// Look for the lib option type
|
||||||
for (int i = 0; i < opts.length; i++) {
|
for (int i = 0; i < opts.length; i++) {
|
||||||
|
@ -453,7 +454,6 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return (String[])libs.toArray(new String[libs.size()]);
|
return (String[])libs.toArray(new String[libs.size()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -739,12 +739,11 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
|
||||||
*/
|
*/
|
||||||
public String[] getUserObjectsForConfiguration(String extension) {
|
public String[] getUserObjectsForConfiguration(String extension) {
|
||||||
Vector objs = new Vector();
|
Vector objs = new Vector();
|
||||||
// Get all the tools for the current config
|
ITool tool = getDefaultConfiguration().getTargetTool();
|
||||||
ITool[] tools = getFilteredTools();
|
if(tool == null)
|
||||||
for (int index = 0; index < tools.length; index++) {
|
tool = getToolFromOutputExtension(extension);
|
||||||
ITool tool = tools[index];
|
|
||||||
// The tool is OK for this project nature
|
if(tool != null){
|
||||||
if (tool.producesFileType(extension)) {
|
|
||||||
IOption[] opts = tool.getOptions();
|
IOption[] opts = tool.getOptions();
|
||||||
// Look for the user object option type
|
// Look for the user object option type
|
||||||
for (int i = 0; i < opts.length; i++) {
|
for (int i = 0; i < opts.length; i++) {
|
||||||
|
@ -776,7 +775,6 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return (String[])objs.toArray(new String[objs.size()]);
|
return (String[])objs.toArray(new String[objs.size()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue