-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Use RuntimeIdentifierGraphPath if available in runtime copy of Microsoft.NET.CrossGen.targets #91077
Conversation
…oft.NET.CrossGen.targets
We should backport this into release/8.0. |
Yep, will backport. |
/backport to release/8.0 |
Started backporting to release/8.0: https://github.com/dotnet/runtime/actions/runs/5968286720 |
@@ -443,7 +443,7 @@ Copyright (c) .NET Foundation. All rights reserved. | |||
<ResolveReadyToRunCompilers RuntimePacks="@(ResolvedRuntimePack)" | |||
Crossgen2Packs="@(ResolvedCrossgen2Pack)" | |||
TargetingPacks="@(ResolvedTargetingPack)" | |||
RuntimeGraphPath="$(BundledRuntimeIdentifierGraphFile)" | |||
RuntimeGraphPath="$([MSBuild]::ValueOrDefault('$(RuntimeIdentifierGraphPath)', '$(BundledRuntimeIdentifierGraphFile)'))" |
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.
Another place using BundledRuntimeIdentifierGraphFile
is in pretest.proj:
runtime/src/libraries/pretest.proj
Line 105 in f8d9b3c
RuntimeGraphFiles="$(BundledRuntimeIdentifierGraphFile)" |
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.
Opened #91102
The sdk (shipping) version of this target was updated to use the new trimmed graph as part of dotnet/sdk#34279. This makes the equivalent change here such that it uses the
RuntimeIdentifierGraphPath
if set (SDK always sets starting with .NET 8 RC1), otherwiseBundledRuntimeIdentifierGraphFile
.From what I can tell, the runtime repo does not actually use this particular
ResolveReadyToRunCompilers
target right now. The only place I found pulling in this target file isruntime/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.props
Line 176 in 658bdd0
but the project also pulls in ReadyToRun.targets
runtime/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj
Line 29 in 658bdd0
which overrides
ResolveReadyToRunCompilers
runtime/src/installer/pkg/sfx/Microsoft.NETCore.App/ReadyToRun.targets
Line 2 in 658bdd0
Fixes #90977
cc @dsplaisted @tmds