Skip to content

Commit

Permalink
Include symbols in main package for NativeAOT runtime packs (dotnet#9…
Browse files Browse the repository at this point in the history
…6675)

* Include symbols in main package for NativeAOT runtime packs

See dotnet#87060 (comment)

* PR feedback

Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>

---------

Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
  • Loading branch information
2 people authored and tmds committed Jan 23, 2024
1 parent 80b366c commit c29b51c
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 c29b51c

Please # to comment.