[mtouch/mmp] Don't enable empty (inexistent) optimizations even when enabling all optimizations.

This makes passing `--optimize:all` not enable optimizations that don't exist
or isn't fully implemented for a platform.
This commit is contained in:
Rolf Bjarne Kvinge 2018-02-15 01:06:55 +01:00
Родитель 8f23934a22
Коммит 0bf081fcf7
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -215,8 +215,10 @@ namespace Xamarin.Bundler
} }
if (opt == "all") { if (opt == "all") {
for (int i = 0; i < values.Length; i++) for (int i = 0; i < values.Length; i++) {
values [i] = enabled; if (!string.IsNullOrEmpty (opt_names [i]))
values [i] = enabled;
}
} else { } else {
var found = false; var found = false;
for (int i = 0; i < values.Length; i++) { for (int i = 0; i < values.Length; i++) {