Skip to content
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

[net10.0] [dotnet] Disable aggressive attribute trimming when using NativeAOT. Fixes #22065. #22151

Open
wants to merge 1 commit into
base: net10.0
Choose a base branch
from

Conversation

rolfbjarne
Copy link
Member

Aggressive attribute trimming removes attributes used by the trimmer. This is
fine as long as we don't run two trimmers - because then the first pass
would remove attributes needed by the second pass, which is exactly what
happens when we're building using NativeAOT: we first run ILLink, then
NativeAOT's trimmer.

If aggressive attribute trimming is enabled in this scenario, ILLink will
remove attributes required by NativeAOT to work correctly, so disable
aggressive attribute trimming.

Fixes #22065.

…ativeAOT. Fixes #22065.

Aggressive attribute trimming removes attributes used by the trimmer. This is
fine as long as we don't run _two_ trimmers - because then the first pass
would remove attributes needed by the second pass, which is exactly what
happens when we're building using NativeAOT: we first run ILLink, then
NativeAOT's trimmer.

If aggressive attribute trimming is enabled in this scenario, ILLink will
remove attributes required by NativeAOT to work correctly, so disable
aggressive attribute trimming.

Fixes #22065.
@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 [PR Build] Build failed (Build macOS tests) 🔥

Build failed for the job 'Build macOS tests' (with job status 'Failed')

Pipeline on Agent
Hash: 6c5e3f57262cccdee847a1bc7ca017ecba4954a0 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 [PR Build] Build failed (Build packages) 🔥

Build failed for the job 'Build packages' (with job status 'Failed')

Pipeline on Agent
Hash: 6c5e3f57262cccdee847a1bc7ca017ecba4954a0 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 [PR Build] Build failed (Detect API changes) 🔥

Build failed for the job 'Detect API changes' (with job status 'Failed')

Pipeline on Agent
Hash: 6c5e3f57262cccdee847a1bc7ca017ecba4954a0 [PR build]

@rolfbjarne rolfbjarne linked an issue Feb 11, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[net10.0] Aggressive attribute trimming breaks NativeAOT builds
3 participants