mirror of https://github.com/python/cpython
gh-94781: Fix Windows projects not cleaning intermediate and output files for frozen modules (GH-96423)
This commit is contained in:
parent
de33df27aa
commit
3e26de3c1f
|
@ -0,0 +1,2 @@
|
||||||
|
Fix :file:`pcbuild.proj` to clean previous instances of ouput files in ``Python\deepfreeze`` and
|
||||||
|
``Python\frozen_modules`` directories on Windows. Patch by Charlie Zhao.
|
|
@ -425,6 +425,10 @@
|
||||||
<Target Name="_CleanFrozen" BeforeTargets="CoreClean" Condition="$(Configuration) != 'PGUpdate'">
|
<Target Name="_CleanFrozen" BeforeTargets="CoreClean" Condition="$(Configuration) != 'PGUpdate'">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Clean Include="%(None.IntFile)" />
|
<Clean Include="%(None.IntFile)" />
|
||||||
|
<Clean Include="%(None.OutFile)" />
|
||||||
|
<Clean Include="%(GetPath.IntFile)" />
|
||||||
|
<Clean Include="%(GetPath.OutFile)" />
|
||||||
|
<Clean Include="$(PySourcePath)Python\deepfreeze\deepfreeze.c" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Target>
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -125,6 +125,12 @@
|
||||||
StopOnFirstFailure="false"
|
StopOnFirstFailure="false"
|
||||||
Condition="%(CleanTarget) != ''"
|
Condition="%(CleanTarget) != ''"
|
||||||
Targets="%(CleanTarget)" />
|
Targets="%(CleanTarget)" />
|
||||||
|
<MSBuild Projects="@(FreezeProjects)"
|
||||||
|
Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)"
|
||||||
|
BuildInParallel="%(BuildInParallel)"
|
||||||
|
StopOnFirstFailure="false"
|
||||||
|
Condition="%(CleanTarget) != ''"
|
||||||
|
Targets="%(CleanTarget)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="CleanAll">
|
<Target Name="CleanAll">
|
||||||
|
@ -140,6 +146,12 @@
|
||||||
StopOnFirstFailure="false"
|
StopOnFirstFailure="false"
|
||||||
Condition="%(CleanAllTarget) != ''"
|
Condition="%(CleanAllTarget) != ''"
|
||||||
Targets="%(CleanAllTarget)" />
|
Targets="%(CleanAllTarget)" />
|
||||||
|
<MSBuild Projects="@(FreezeProjects)"
|
||||||
|
Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)"
|
||||||
|
BuildInParallel="%(BuildInParallel)"
|
||||||
|
StopOnFirstFailure="false"
|
||||||
|
Condition="%(CleanTarget) != ''"
|
||||||
|
Targets="%(CleanTarget)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="Rebuild" DependsOnTargets="Clean;Build" />
|
<Target Name="Rebuild" DependsOnTargets="Clean;Build" />
|
||||||
|
|
Loading…
Reference in New Issue