Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6871fd0

Browse files
authored
Ensure LICENSE.txt file is generated even in PGO builds (GH-27580)
1 parent 5832597 commit 6871fd0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

PCbuild/regen.targets

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@
101101
</ItemGroup>
102102

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

124-
<Target Name="PostBuildRegen"
125-
Condition="$(Configuration) != 'PGInstrument' and $(Configuration) != 'PGUpdate'"
126-
DependsOnTargets="_RegenTestFrozenmain;_RegenLicense" />
125+
<Target Name="PostBuildRegen" DependsOnTargets="_RegenTestFrozenmain;_RegenLicense" />
127126
</Project>

0 commit comments

Comments
 (0)