Merge pull request #286 from brthor/corehost_mac
Changes for corehost default path resolution on mac
This commit is contained in:
commit
e781a3bf68
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue