Skip to content

Commit

Permalink
Update PGO.compile.props to address a xfgcheck issue (#8792)
Browse files Browse the repository at this point in the history
A link time flag is added in an attempt to address a xfgcheck6 error.
  • Loading branch information
alexlamtest authored Aug 31, 2023
1 parent 4c051cd commit df08001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PGO.compile.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<!-- Enable PGO optimization only for Release builds. -->
<ItemDefinitionGroup Condition="'$(PGOBuildMode)' == 'Instrument'">
<Link>
<AdditionalOptions>/GENPROFILE %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/GENPROFILE /debugtype:cv,fixup %(AdditionalOptions)</AdditionalOptions>
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
<AdditionalDependencies Condition="'$(Platform)'=='ARM'">$(VC_ReferencesPath_VC_ARM)\pgort.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies Condition="'$(Platform)'=='ARM64'">$(VC_ReferencesPath_VC_ARM64)\pgort.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies Condition="'$(Platform)'=='Win32'">$(VC_ReferencesPath_VC_x86)\pgort.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies Condition="'$(Platform)'=='x64'">$(VC_ReferencesPath_VC_x64)\pgort.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
</Project>
</Project>

0 comments on commit df08001

Please sign in to comment.