mirror of https://github.com/python/cpython
Ensure LICENSE.txt file is generated even in PGO builds (GH-27580)
This commit is contained in:
parent
58325971de
commit
6871fd0e8e
|
@ -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)" />
|
||||
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue