1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 14:15:23 +02:00

bug 282092: Linker settings "Other Objects" not working on Windows (MinGW)

Patch from Marc-Andre Laperle
This commit is contained in:
Andrew Gvozdev 2009-09-13 16:20:50 +00:00
parent d1d5511415
commit 1ec7ef5ef2
2 changed files with 10 additions and 0 deletions

View file

@ -1937,6 +1937,12 @@ public class BuildDescription implements IBuildDescription {
private BuildResource addInput(String path, BuildIOType buildArg){
if(path.length() > 0){
if(path.length() >= 2){
// Unquote path potentially quoted by FileListControl.getNewInputObject()
if(path.charAt(0) == '"' && path.charAt(path.length() -1) == '"') {
path = path.substring(1, path.length() -1);
}
}
IPath pPath = Path.fromOSString(path);
return addInput(pPath, buildArg);
}

View file

@ -61,6 +61,10 @@ public class BuildResource implements IBuildResource {
* @see org.eclipse.cdt.managedbuilder.builddescription.IBuildResource#getLocation()
*/
public IPath getLocation() {
if(fFullWorkspacePath == null) {
return new Path(fLocationURI.getPath());
}
IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(fFullWorkspacePath);
if(resource == null) {
return new Path(fLocationURI.getPath());