return new UnavailableToolChain("gcc cygwin");
}
static private ToolChainCandidate findGcc(NativePlatformInternal targetPlatform) {
GccVersionDeterminer versionDeterminer = GccVersionDeterminer.forGcc(new ExecActionFactory() {
public ExecAction newExecAction() {
return new DefaultExecAction(TestFiles.resolver());
}
});
List<File> gppCandidates = targetPlatform.getOperatingSystem().getInternalOs().findAllInPath("g++");
for (int i = 0; i < gppCandidates.size(); i++) {
File candidate = gppCandidates.get(i);
GccVersionResult version = versionDeterminer.getGccMetaData(candidate, Collections.<String>emptyList());
if (version.isAvailable()) {
InstalledGcc gcc = new InstalledGcc("gcc");
if (i > 0) {
// Not the first g++ in the path, needs the path variable updated
gcc.inPath(candidate.getParentFile());