Skip to content

Commit

Permalink
Include symbols in main package for NativeAOT runtime packs (#96675)
Browse files Browse the repository at this point in the history
* Include symbols in main package for NativeAOT runtime packs

See #87060 (comment)

* PR feedback

Co-authored-by: Viktor Hofer <[email protected]>

---------

Co-authored-by: Viktor Hofer <[email protected]>
  • Loading branch information
akoeplinger and ViktorHofer authored Jan 9, 2024
1 parent 4d4c6a7 commit cc5f1df
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,15 @@
</ItemGroup>
</Target>

<Target Name="IncludeSymbolFilesInNativeAOTPackage"
Condition="'$(BuildNativeAOTRuntimePack)' == 'true'"
AfterTargets="GetFilesToPackage">
<ItemGroup>
<!-- ILC needs the symbols next to the binaries -->
<FilesToPackage Update="@(FilesToPackage->WithMetadataValue('IsSymbolFile', 'true'))">
<IncludeAlways>true</IncludeAlways>
</FilesToPackage>
</ItemGroup>
</Target>

</Project>

0 comments on commit cc5f1df

Please sign in to comment.