mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Fix for 102348: cygpath not found.
Cygpath is asked for translation only if "/..." include paths are discovered on WIN32 platform.
This commit is contained in:
parent
9dc44a1309
commit
23bf7780e8
1 changed files with 15 additions and 0 deletions
|
@ -86,6 +86,21 @@ public class CygpathTranslator {
|
|||
* @return
|
||||
*/
|
||||
public static List translateIncludePaths(IProject project, List sumIncludes) {
|
||||
// first check if cygpath translation is needed at all
|
||||
boolean translationNeeded = false;
|
||||
if (Platform.getOS().equals(Platform.OS_WIN32)) {
|
||||
for (Iterator i = sumIncludes.iterator(); i.hasNext(); ) {
|
||||
String include = (String) i.next();
|
||||
if (include.startsWith("/")) { //$NON-NLS-1$
|
||||
translationNeeded = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!translationNeeded) {
|
||||
return sumIncludes;
|
||||
}
|
||||
|
||||
CygpathTranslator cygpath = new CygpathTranslator(project);
|
||||
if (cygpath.cygPath == null) return sumIncludes;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue