Skip to content

Conversation

MichalStrehovsky
Copy link
Member

Resolves #112927.

This improves working set and startup. There's no such impact on non-Windows so keeping it on. Still enabling when optimizing for size.

Cc @dotnet/ilc-contrib

Resolves #112927.

This improves working set and startup. There's no such impact on non-Windows so keeping it on. Still enabling when optimizing for size.
@Copilot Copilot AI review requested due to automatic review settings July 17, 2025 10:26
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the native AOT build targets to disable data dehydration (--dehydrate) on Windows by default, while still allowing it when optimizing for size or when explicitly enabled.

  • Adds a Windows-specific clause to the --dehydrate condition in Microsoft.NETCore.Native.targets
  • Ensures dehydration remains enabled for OptimizationPreference=Size or when IlcDehydrate=true

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal: expose 'IlcDehydrate' as a supported option
2 participants