Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2011-08-18 12:16:59 -0400
committerAndrew Gvozdev2011-08-18 13:41:06 -0400
commitfa5965cef09a515c28a51b1aa44e3b010d2a33e0 (patch)
tree94f3db782ac1f52c385938410ab735b775ce226e /build/org.eclipse.cdt.make.core
parentd5d717128b47835cfbb5a4623d977bfbb2edd925 (diff)
downloadorg.eclipse.cdt-fa5965cef09a515c28a51b1aa44e3b010d2a33e0.tar.gz
org.eclipse.cdt-fa5965cef09a515c28a51b1aa44e3b010d2a33e0.tar.xz
org.eclipse.cdt-fa5965cef09a515c28a51b1aa44e3b010d2a33e0.zip
bug 345750: convert relative paths to absolute also for those that don't
exist
Diffstat (limited to 'build/org.eclipse.cdt.make.core')
-rw-r--r--build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/util/CCommandDSC.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/util/CCommandDSC.java b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/util/CCommandDSC.java
index 50e6724729..2795586ba2 100644
--- a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/util/CCommandDSC.java
+++ b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/util/CCommandDSC.java
@@ -422,6 +422,10 @@ public class CCommandDSC {
IPath ppath = new Path(path);
if (project != null && !ppath.isAbsolute()) {
IResource res = project.findMember(ppath);
+ if (res == null) {
+ // To calculate path only; this does not create any file
+ res = project.getFile(path);
+ }
if (res != null) {
ppath = res.getLocation();
if (ppath != null) {

Back to the top