mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 13:05:22 +02:00
bug 282092: Linker settings "Other Objects" not working on Windows (MinGW)
Patch from Marc-Andre Laperle
This commit is contained in:
parent
d1d5511415
commit
1ec7ef5ef2
2 changed files with 10 additions and 0 deletions
|
@ -1937,6 +1937,12 @@ public class BuildDescription implements IBuildDescription {
|
||||||
|
|
||||||
private BuildResource addInput(String path, BuildIOType buildArg){
|
private BuildResource addInput(String path, BuildIOType buildArg){
|
||||||
if(path.length() > 0){
|
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);
|
IPath pPath = Path.fromOSString(path);
|
||||||
return addInput(pPath, buildArg);
|
return addInput(pPath, buildArg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,6 +61,10 @@ public class BuildResource implements IBuildResource {
|
||||||
* @see org.eclipse.cdt.managedbuilder.builddescription.IBuildResource#getLocation()
|
* @see org.eclipse.cdt.managedbuilder.builddescription.IBuildResource#getLocation()
|
||||||
*/
|
*/
|
||||||
public IPath getLocation() {
|
public IPath getLocation() {
|
||||||
|
if(fFullWorkspacePath == null) {
|
||||||
|
return new Path(fLocationURI.getPath());
|
||||||
|
}
|
||||||
|
|
||||||
IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(fFullWorkspacePath);
|
IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(fFullWorkspacePath);
|
||||||
if(resource == null) {
|
if(resource == null) {
|
||||||
return new Path(fLocationURI.getPath());
|
return new Path(fLocationURI.getPath());
|
||||||
|
|
Loading…
Add table
Reference in a new issue