-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set TrimMode partial by default #7132
Set TrimMode partial by default #7132
Conversation
Companion to dotnet/linker#2856
...id.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.DefaultProperties.targets
Outdated
Show resolved
Hide resolved
…Microsoft.Android.Sdk.DefaultProperties.targets Co-authored-by: Jonathan Peppers <jonathan.peppers@gmail.com>
Note, this trimmode will only be understood once the linker change is merged, so we'll have to wait for that. |
Worryingly, this passed, so I suspect we're not actually running any trim tests, or that I missed another setting of TrimMode -- I'll double check that. |
Ah, I see no tests are run here. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
So when the change in dotnet/linker#2856 flows all the way to dotnet/installer, we can try this. Our Maestro cadence right now is weekly, but I can do it faster if that change lands. Let me know. |
Yeah, once this goes in I think we'll want to flow through everywhere ASAP to flush out problems. Thanks for your help. |
SDK change has just moved through been merged, so we probably need to merge it in for this to update. |
Updated the linker version manually so this should be ready and merged ASAP |
Note: the SDK change is in p7 so this needs to be in p7 as well |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@agocke : any links to useful documentation about what |
eng/Versions.props
Outdated
<MicrosoftNETILLinkTasksPackageVersion>7.0.100-1.22351.1</MicrosoftNETILLinkTasksPackageVersion> | ||
<MicrosoftNETILLinkTasksPackageVersion>7.0.100-1.22362.3</MicrosoftNETILLinkTasksPackageVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing this number manually, actually doesn't update the dotnet/linker we are testing against. It only updates the reference assembly this project builds against:
To get a newer dotnet/linker, we bump dotnet/installer.
This one doesn't have your change either (#7162), let me try to get newer Maestro bumps in.
Related to #7132 (comment), I'd like to add a test here for at least |
I see, in that case I'll revert my changes. We haven't had a chance to update docs yet. TrimMode=partial only trims things that are marked |
@jonathanpeppers Happy to add a test, but I think android will be broken if we don't merge this soon. The SDK will default to trimming everything unless told otherwise. |
…36b-bdbc39f54705' into set-trimmode-partial
/azp run |
Commenter does not have sufficient privileges for PR 7132 in repo xamarin/xamarin-android |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
I think we have an existing test for both modes:
This is probably good enough for now, as this test runs for Xamarin.Android and .NET 7+. |
I'm going to merge this into #7170, as it is giving some test failures that show |
e62dcb0
into
dotnet:darc-main-1a7fcdae-fd29-44ca-936b-bdbc39f54705
Companion to dotnet/linker#2856 * Update src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.DefaultProperties.targets * Remove more usages of TrimMode * Update linker versions manually Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
Changes: dotnet/installer@85a0482...a9c056c Changes: dotnet/linker@ef2d0f2...d27ff61 Changes: dotnet/runtime@206dccb...072eda8 Changes: dotnet/emsdk@40e7c62...11a9acf Updates: * Microsoft.Dotnet.Sdk.Internal: from 7.0.100-preview.7.22361.1 to 7.0.100-rc.1.22368.2 * Microsoft.NET.ILLink.Tasks: from 7.0.100-1.22354.1 to 7.0.100-1.22365.1 * Microsoft.NETCore.App.Ref: from 7.0.0-preview.6.22356.1 to 7.0.0-rc.1.22366.5 * Microsoft.NET.Workload.Emscripten.Manifest-7.0.100: from 7.0.0-preview.7.22330.1 to 7.0.0-rc.1.22362.2 ~~ Set `$(TrimMode)` `partial` by default (#7132) ~~ Companion to dotnet/linker#2856 * Update src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.DefaultProperties.targets * Remove usages of `%(TrimMode)` for `$(AndroidLinkMode)` of `Full` * Update .apkdesc files ~~ Set `$(LangVersion)` to 10 in Mono.Android.csproj ~~ There appears to be a C# 11 IL size regression in: dotnet/roslyn#62832 We can use C# 10 for now to avoid this. * Fixed `Mono.Android.dll` size in `.apkdesc` files Co-authored-by: Andy Gocke <andy@commentout.net> Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
Changes: dotnet/installer@d2fff6d...dbdda95 Changes: dotnet/linker@ef2d0f2...33a76b8 Changes: dotnet/runtime@206dccb...db5d4df Changes: dotnet/emsdk@40e7c62...7d27778 Updates: * Microsoft.Dotnet.Sdk.Internal: from 7.0.100-preview.7.22362.31 to 7.0.100-preview.7.22370.3 * Microsoft.NET.ILLink.Tasks: from 7.0.100-1.22354.1 to 7.0.100-1.22362.1 * Microsoft.NETCore.App.Ref: from 7.0.0-preview.6.22356.1 to 7.0.0-preview.7.22369.4 * Microsoft.NET.Workload.Emscripten.Manifest-7.0.100: from 7.0.0-preview.7.22330.1 to 7.0.0-preview.7.22361.2 ~~ Set `$(TrimMode)` `partial` by default (#7132) ~~ Companion to dotnet/linker#2856 * Update src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.DefaultProperties.targets * Remove usages of `%(TrimMode)` for `$(AndroidLinkMode)` of `Full` * Update .apkdesc files ~~ Set `$(LangVersion)` to 10 in Mono.Android.csproj ~~ There appears to be a C# 11 IL size regression in: dotnet/roslyn#62832 We can use C# 10 for now to avoid this. * Fixed `Mono.Android.dll` size in `.apkdesc` files Co-authored-by: Andy Gocke <andy@commentout.net> Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
Companion to dotnet/linker#2856