From 39ee1d882e4da84de217ca2dc6a88745385001f2 Mon Sep 17 00:00:00 2001 From: Chris Hamons Date: Tue, 11 Jun 2019 14:34:42 -0500 Subject: [PATCH] [mmp][aot] Pass --debug in debug builds so we don't lose debug line info - https://github.com/xamarin/xamarin-macios/issues/6267 --- tools/mmp/aot.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/mmp/aot.cs b/tools/mmp/aot.cs index 02498fe49c..882c33ab51 100644 --- a/tools/mmp/aot.cs +++ b/tools/mmp/aot.cs @@ -208,7 +208,8 @@ namespace Xamarin.Bundler { List 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); });