mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Update PGO configuration
This commit is contained in:
parent
1b03471c06
commit
2aed18a12e
3 changed files with 5 additions and 35 deletions
|
@ -2,7 +2,7 @@
|
||||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PGOBuildMode Condition="'$(PGOBuildMode)'==''">Optimize</PGOBuildMode>
|
<EnablePGOCodeGen Condition="'$(EnablePGOCodeGen)'==''">true</EnablePGOCodeGen>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
|
@ -1,40 +1,9 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
|
||||||
<PropertyGroup>
|
<!-- Enable PGO optimization only for Release builds. -->
|
||||||
<VC_PGO_RunTime_Dir>$(VCToolsInstallDir)bin\Host$(PlatformShortName)\$(PlatformShortName)</VC_PGO_RunTime_Dir>
|
<PropertyGroup Condition="'$(Configuration)' == 'Release' and '$(EnablePGOCodeGen)' == 'true'">
|
||||||
<VC_PGO_RunTime_Dir Condition="'$(Platform)'=='ARM' or '$(Platform)'=='ARM64'">$(VCToolsInstallDir)bin\$(PlatformShortName)</VC_PGO_RunTime_Dir>
|
<IlcParameters>$(IlcParameters) /pgu /pgd:"$(MSBuildThisFileDirectory)..\..\tools\$(Platform)\Calculator.pgd"</IlcParameters>
|
||||||
<ProfileGuidedDatabaseFileName>$(MSBuildThisFileDirectory)..\..\tools\$(PlatformShortName)\Calculator.pgd</ProfileGuidedDatabaseFileName>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!-- Enable PGO optimization only for Release builds. -->
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)' == 'Release' and '$(PGOBuildMode)' == 'Instrument'">
|
|
||||||
<Link>
|
|
||||||
<LinkTimeCodeGeneration>PGInstrument</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>
|
|
||||||
|
|
||||||
<!-- Include pgort140.dll in the app package -->
|
|
||||||
<ItemGroup Condition="'$(Configuration)' == 'Release' and '$(PGOBuildMode)' == 'Instrument'">
|
|
||||||
<None Include="$(VC_PGO_RunTime_Dir)\pgort140.dll">
|
|
||||||
<Link>%(Filename)%(Extension)</Link>
|
|
||||||
<DeploymentContent>true</DeploymentContent>
|
|
||||||
<Visible>false</Visible>
|
|
||||||
<InProject>false</InProject>
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<!-- Enable PGO optimization only for if the pgds file exists. -->
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)' == 'Release' and '$(PGOBuildMode)' == 'Optimize' and Exists('$(ProfileGuidedDatabaseFileName)')">
|
|
||||||
<Link>
|
|
||||||
<LinkTimeCodeGeneration>PGUpdate</LinkTimeCodeGeneration>
|
|
||||||
<ProfileGuidedDatabase>$(ProfileGuidedDatabaseFileName)</ProfileGuidedDatabase>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
|
@ -36,6 +36,7 @@
|
||||||
<AppxBundlePlatforms>$(Platform)</AppxBundlePlatforms>
|
<AppxBundlePlatforms>$(Platform)</AppxBundlePlatforms>
|
||||||
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
|
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
|
||||||
<IlcParameters>/disableStackTraceMetadata /disableExceptionMessages</IlcParameters>
|
<IlcParameters>/disableStackTraceMetadata /disableExceptionMessages</IlcParameters>
|
||||||
|
<EnablePGOCodeGen Condition="'$(Platform)' == 'ARM64'">false</EnablePGOCodeGen>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!-- This has to be exactly in this place for this to work -->
|
<!-- This has to be exactly in this place for this to work -->
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue