summaryrefslogtreecommitdiff
path: root/src/build.proj
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.proj')
-rw-r--r--src/build.proj14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/build.proj b/src/build.proj
index 7962d27e99..b59b00c00f 100644
--- a/src/build.proj
+++ b/src/build.proj
@@ -38,4 +38,18 @@
DestinationFolder="$(BinDir)PDB" />
</Target>
+ <PropertyGroup>
+ <RunEnforcePGO Condition="$(__EnforcePgo) == '1'">true</RunEnforcePGO>
+ <RunEnforcePGO Condition="$(__BuildArch) == 'arm' OR $(__BuildArch) == 'arm64'">false</RunEnforcePGO>
+ </PropertyGroup>
+
+ <Target Name="EnforcePGO" Condition="$(RunEnforcePGO) == 'true'" AfterTargets="Build">
+ <ItemGroup>
+ <PGOEnforcedFiles Include="$(BinDir)coreclr.dll" />
+ <PGOEnforcedFiles Include="$(BinDir)clrjit.dll" />
+ </ItemGroup>
+
+ <Message Text="Checking if the following DLLs are properly compiled with PGO" Importance="High" />
+ <Exec Command="python $(MSBuildThisFileDirectory)scripts\pgocheck.py @(PGOEnforcedFiles)" />
+ </Target>
</Project>