mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fixed the bug with handling the case of executing the CygPathResolver on non-windows systems
This commit is contained in:
parent
c1c91403c4
commit
7425c75771
1 changed files with 3 additions and 2 deletions
|
@ -65,12 +65,13 @@ public class CygwinPathResolver implements IBuildPathResolver {
|
|||
public String[] resolveBuildPaths(int pathType, String variableName,
|
||||
String variableValue, IConfiguration configuration) {
|
||||
|
||||
if(isMinGW(configuration)){
|
||||
if(!isWindows()){
|
||||
return variableValue.split(DELIMITER_UNIX);
|
||||
} else if(isMinGW(configuration)){
|
||||
return variableValue.split(DELIMITER_WIN);
|
||||
}
|
||||
|
||||
String[] result = variableValue.split(DELIMITER_UNIX);
|
||||
if (!isWindows()) return result;
|
||||
String exePath = getBinPath();
|
||||
if (exePath == null) { return result; } // no changes
|
||||
File file = new File(exePath);
|
||||
|
|
Loading…
Add table
Reference in a new issue