[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:
Родитель
6e987418f7
Коммит
551c0be103
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче