1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-10 18:11:04 +09:00

[mono][ios] Add support for stripping during AOT compilation on iOS (#87728)

* Add support for stripping debug symbols and enabling IL stripping during AOT compilation on iOS
This commit is contained in:
Milos Kotlar 2023-06-19 11:09:41 +02:00 committed by GitHub
parent 919d316fa8
commit 9e93f42dce
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View file

@ -15,7 +15,9 @@
<UseMonoRuntime>true</UseMonoRuntime>
<UseMonoJustInterp Condition="'$(RunAOTCompilation)' == 'true' and '$(MonoForceInterpreter)' == 'true'">true</UseMonoJustInterp>
<!--<ShouldILStrip Condition="'$(RunAOTCompilation)' == 'true' and '$(MonoForceInterpreter)' != 'true'">true</ShouldILStrip>-->
<StripDebugSymbols Condition="'$(StripDebugSymbols)' == ''" >false</StripDebugSymbols>
<!-- Tracking issue: https://github.com/dotnet/runtime/issues/87740 -->
<!-- <ShouldILStrip Condition="'$(RunAOTCompilation)' == 'true' and '$(MonoForceInterpreter)' != 'true'">true</ShouldILStrip> -->
<_IsLibraryMode Condition="'$(NativeLib)' != ''">true</_IsLibraryMode>

View file

@ -261,6 +261,7 @@
ProjectName="$(AppName)"
RuntimeComponents="$(RuntimeComponents)"
TargetOS="$(TargetOS)"
StripSymbolTable="$(StripDebugSymbols)"
ExcludeFromAppDir="@(_ExcludeFromAppDir)"
UseConsoleUITemplate="$(UseConsoleUITemplate)">
<Output TaskParameter="AppBundlePath" PropertyName="AppBundlePath" />

View file

@ -13,6 +13,7 @@
<PublishTrimmed>true</PublishTrimmed>
<TrimMode>Link</TrimMode>
<Optimized Condition="'$(Configuration)' == 'Release'">true</Optimized>
<ShouldILStrip Condition="'$(RunAOTCompilation)' == 'true' and '$(MonoForceInterpreter)' != 'true'">true</ShouldILStrip>
<EnableDefaultAssembliesToBundle>true</EnableDefaultAssembliesToBundle>
<AppleGenerateAppBundle>true</AppleGenerateAppBundle>