Merge pull request #286 from brthor/corehost_mac

Changes for corehost default path resolution on mac
This commit is contained in:
Bryan Thornbury 2015-11-20 22:25:54 -08:00
commit e781a3bf68

View file

@ -24,14 +24,15 @@ bool pal::find_coreclr(pal::string_t& recv)
pal::string_t candidate;
pal::string_t test;
// Try /usr/share/dotnet and /usr/local/share/dotnet
// Try /usr/share/dotnet and /usr/local/share/dotnet/cli
// TODO: These paths should be consistent
candidate.assign("/usr/share/dotnet/runtime/coreclr");
if (coreclr_exists_in_dir(candidate)) {
recv.assign(candidate);
return true;
}
candidate.assign("/usr/local/share/dotnet/runtime/coreclr");
candidate.assign("/usr/local/share/dotnet/cli/runtime/coreclr");
if (coreclr_exists_in_dir(candidate)) {
recv.assign(candidate);
return true;