return stdLibResolutions.getEntry(foundInstall); // found install can be null
}
protected CompilerInstall getCompilerInstallForNewResolution(Path compilerPath) {
if(compilerPath != null) {
return new CompilerInstallDetector().detectInstallFromCompilerCommandPath(compilerPath);
} else {
// TODO: determine a better match according to compiler type.
return new SM_SearchCompilersOnPath().searchForCompilersInDefaultPathEnvVars().getPreferredInstall();
}
}