Skip to content

Commit

Permalink
Ensure LICENSE.txt file is generated even in PGO builds (GH-27580)
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Aug 3, 2021
1 parent 5832597 commit 6871fd0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions PCbuild/regen.targets
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@
</ItemGroup>

<Target Name="_RegenTestFrozenmain" Inputs="@(_TestFrozenSources)" Outputs="@(_TestFrozenOutputs)"
Condition="$(Platform) == 'Win32' or $(Platform) == 'x64'">
Condition="($(Platform) == 'Win32' or $(Platform) == 'x64') and
$(Configuration) != 'PGInstrument' and $(Configuration) != 'PGUpdate'">
<Message Text="Regenerate @(_TestFrozenOutputs->'%(Filename)%(Extension)', ' ')" Importance="high" />
<Exec Command="$(PythonExe) Programs\freeze_test_frozenmain.py Programs/test_frozenmain.h"
WorkingDirectory="$(PySourcePath)" />
Expand All @@ -121,7 +122,5 @@
<Message Text="Wrote $(OutDir)LICENSE.txt" Importance="high" />
</Target>

<Target Name="PostBuildRegen"
Condition="$(Configuration) != 'PGInstrument' and $(Configuration) != 'PGUpdate'"
DependsOnTargets="_RegenTestFrozenmain;_RegenLicense" />
<Target Name="PostBuildRegen" DependsOnTargets="_RegenTestFrozenmain;_RegenLicense" />
</Project>

0 comments on commit 6871fd0

Please sign in to comment.