[msbuild] Use Xcode-specific versions of some command-line tools (#1462)

The `strip` command was already doing this, but `ar` and `dsymutil`
were using /usr/bin versions (which might not exist, depending on
the Xcode installation).
This commit is contained in:
Jeffrey Stedfast 2017-01-10 13:58:22 -05:00 коммит произвёл GitHub
Родитель 6e987418f7
Коммит 551c0be103
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -31,7 +31,7 @@ namespace Xamarin.MacDev.Tasks
if (!string.IsNullOrEmpty (ToolPath))
return Path.Combine (ToolPath, ToolExe);
var path = Path.Combine ("/usr/bin", ToolExe);
var path = Path.Combine (AppleSdkSettings.DeveloperRoot, "Toolchains", "XcodeDefault.xctoolchain", "usr", "bin", ToolExe);
return File.Exists (path) ? path : ToolExe;
}

Просмотреть файл

@ -50,7 +50,7 @@ namespace Xamarin.MacDev.Tasks
if (!string.IsNullOrEmpty (ToolPath))
return Path.Combine (ToolPath, ToolExe);
var path = Path.Combine ("/usr/bin", ToolExe);
var path = Path.Combine (AppleSdkSettings.DeveloperRoot, "Toolchains", "XcodeDefault.xctoolchain", "usr", "bin", ToolExe);
return File.Exists (path) ? path : ToolExe;
}