Repository navigation
Conversation
|
Tagging subscribers to 'arch-wasm': @lewing Issue Detailsnull
|
| <Target Name="_OverrideILLinkPack" BeforeTargets="ProcessFrameworkReferences"> | ||
| <ItemGroup> | ||
| <KnownILLinkPack Update="Microsoft.NET.ILLink.Tasks" Condition="%(KnownILLinkPack.TargetFramework) == 'net8.0'" ILLinkPackVersion="$(_RuntimePackInWorkloadVersionCurrent)" /> | ||
| </ItemGroup> | ||
| </Target> |
There was a problem hiding this comment.
cc @sbomer. We already have logic to consume the live illink pack: https://github.com/dotnet/runtime/blob/main/eng/liveILLink.targets
Why do we need this duplication?
There was a problem hiding this comment.
This is for Wasm.Build.Tests which run in a special way on helix:
- Use a sdk with
wasm-toolsworkload installed - The installed workload packs are from locally built nugets (thus the sdk will have binaries from artifacts)
- then each test creates a project, and builds it using that sdk
- So, we can't directly depend on
artifacts/, orliveILLink.targets
The problem being solved here is that the workload itself does not contain the version for ILLink.tasks, the sdk does. So, for these tests you end up with sdk which uses the linker tasks from the nuget version specified in the sdk itself, and not the built nugets.
And to solve that we build the nuget for illink.tasks (with a version like 9.0.0-ci) and then edit the version for KnownILLinkPack, allowing rest of the build to run normally like it would for a user project.
sigh! :/ |
|
I think you're hitting the behavior described in #90197 - the ILLink.Tasks package has to depend on the runtime version being built, but to use live bits illink needs to be able to run on the current SDK that we're building with. How do you handle this versioning problem for the workload packs? Are those just always compatible with the current SDK? What happens if a workload pack contains tools that request an n-1 runtime - can they pick an older SDK like we saw in #90015? |
|
Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it. |
No description provided.