[clr-ios] Add options to strip inlining and debug info in Crossgen2 on Apple mobile#124604
[clr-ios] Add options to strip inlining and debug info in Crossgen2 on Apple mobile#124604kotlarmilos wants to merge 1 commit intodotnet:mainfrom
Conversation
|
Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @steveisok, @akoeplinger |
| <data name="StripInliningInfoOption" xml:space="preserve"> | ||
| <value>Strip inlining info from the R2R image.</value> | ||
| </data> | ||
| <data name="StripDebugInfoOption" xml:space="preserve"> |
There was a problem hiding this comment.
Is this managed or native debug info? i.e. does this affect native stack traces / crash reports in any way?
There was a problem hiding this comment.
It is managed debug info. It does not affect what you see in the native debugger.
Nit: This is not accurate statement. These sections are usable without JIT as well:
It is fine to lose these features for mobile apps. I am just pointing out that it is not really related to JIT support. |
|
Thanks Jan, updated the description. |
Description
This PR adds
--strip-inlining-infoand--strip-debug-infooptions to crossgen2 and auto-enables them for Apple mobile platforms. Stripping these sections reduces the composite R2R dylib size by 2.2 MB in MAUI template app.