[mmp][aot] Pass --debug in debug builds so we don't lose debug line info

- https://github.com/xamarin/xamarin-macios/issues/6267
This commit is contained in:
Chris Hamons 2019-06-11 14:34:42 -05:00
Родитель 2dc06c7126
Коммит 39ee1d882e
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -208,7 +208,8 @@ namespace Xamarin.Bundler {
List<string> filesToAOT = GetFilesToAOT (files);
Parallel.ForEach (filesToAOT, ParallelOptions, file => {
string command = String.Format ("--aot{0} {1}{2}", options.IsHybridAOT ? "=hybrid" : "", IsModern ? "--runtime=mobile " : "", StringUtils.Quote (file));
string command = String.Format ("--aot{0} {1}{2}{3}", options.IsHybridAOT ? "=hybrid" : "",
IsModern ? "--runtime=mobile " : "", IsRelease ? "" : "--debug ", StringUtils.Quote (file));
if (RunCommand (MonoPath, command, monoEnv) != 0)
throw ErrorHelper.CreateError (3001, "Could not AOT the assembly '{0}'", file);
});