Skip to content

Commit

Permalink
Bring back CopyOutputSymbolsToPublishDirectory (dotnet#92315)
Browse files Browse the repository at this point in the history
I accidentally removed this property from AOT compilation
when adding support for Mac dsym bundles. This change re-enables
support for suppressing debugging symbols in the output.

Fixes dotnet#92188
  • Loading branch information
agocke authored Sep 20, 2023
1 parent b4be77b commit c0b5150
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@
<!-- replace apphost with binary we generated during native compilation -->
<Delete Files="$(PublishDir)\$(TargetName)$(NativeBinaryExt)" />
<Copy SourceFiles="$(NativeOutputPath)$(TargetName)$(NativeBinaryExt)" DestinationFolder="$(PublishDir)" />
</Target>

<Target Name="_CopyAotSymbols" AfterTargets="Publish"
Condition="'$(CopyOutputSymbolsToPublishDirectory)' == 'true'">
<!-- dotnet CLI produces managed debug symbols, which we will delete and copy native symbols instead -->
<Delete Files="$(PublishDir)\$(TargetName).pdb" />

Expand Down

0 comments on commit c0b5150

Please sign in to comment.