[mtouch] Don't parse appex executables for architecture(s). (#1551)

Don't parse appex executables for the architecture(s) when we have the exact
same information already in the process.
This commit is contained in:
Rolf Bjarne Kvinge 2017-01-24 13:42:49 +01:00 коммит произвёл GitHub
Родитель 29dbb38ad4
Коммит 62faa06f4b
1 изменённых файлов: 3 добавлений и 6 удалений

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

@ -282,12 +282,9 @@ namespace Xamarin.Bundler {
all_architectures = new HashSet<Abi> ();
foreach (var abi in abis)
all_architectures.Add (abi & Abi.ArchMask);
foreach (var ext in Extensions) {
var executable = GetStringFromInfoPList (ext, "CFBundleExecutable");
if (string.IsNullOrEmpty (executable))
throw ErrorHelper.CreateError (63, "Cannot find the executable in the extension {0} (no CFBundleExecutable entry in its Info.plist)", ext);
foreach (var abi in Xamarin.MachO.GetArchitectures (Path.Combine (ext, executable)))
all_architectures.Add (abi);
foreach (var ext in AppExtensions) {
foreach (var abi in ext.Abis)
all_architectures.Add (abi & Abi.ArchMask);
}
}
return all_architectures;