Always add ManagedDataDescriptorProvider to compilationRoots#127643
Always add ManagedDataDescriptorProvider to compilationRoots#127643MichalStrehovsky wants to merge 1 commit intomainfrom
Conversation
This just causes `error LNK2001: unresolved external symbol DotNetManagedContractDescriptor`
|
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib |
There was a problem hiding this comment.
Pull request overview
This PR changes the NativeAOT ILCompiler driver to always add ManagedDataDescriptorProvider to compilationRoots, instead of only doing so when --debug (EnableDebugInfo) is enabled.
Changes:
- Remove the
--debugconditional and unconditionally rootManagedDataDescriptorProvider.
🤖 Copilot Code Review — PR #127643Note This review was generated by GitHub Copilot. Holistic AssessmentMotivation: The PR fixes a linker error ( Approach: Removing the Summary: ✅ LGTM. The fix is correct, minimal, and well-motivated. The Detailed Findings✅ Correctness — Fix is soundVerified that:
✅ No side effects — Safe to always emitThe 💡 Observation — Original guard was likely copy-pasteThe debug info guard may have been added when
|
This just causes
error LNK2001: unresolved external symbol DotNetManagedContractDescriptor