mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-113258: Write frozen modules to the build tree on Windows (GH-113303)
This ensures the source directory is not modified at build time, and different builds (e.g. different versions or GIL vs no-GIL) do not have conflicts.
This commit is contained in:
parent
7d01fb4808
commit
178919cf21
5 changed files with 61 additions and 56 deletions
|
|
@ -111,6 +111,7 @@
|
|||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Modules\getpath.c">
|
||||
<AdditionalIncludeDirectories>$(GeneratedFrozenModulesDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>
|
||||
PREFIX=NULL;
|
||||
EXEC_PREFIX=NULL;
|
||||
|
|
@ -120,7 +121,6 @@
|
|||
PLATLIBDIR="DLLs";
|
||||
%(PreprocessorDefinitions)
|
||||
</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(PySourcePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
@ -562,7 +562,9 @@
|
|||
<ClCompile Include="..\Python\flowgraph.c" />
|
||||
<ClCompile Include="..\Python\formatter_unicode.c" />
|
||||
<ClCompile Include="..\Python\frame.c" />
|
||||
<ClCompile Include="..\Python\frozen.c" />
|
||||
<ClCompile Include="..\Python\frozen.c">
|
||||
<AdditionalIncludeDirectories>$(GeneratedFrozenModulesDir)Python;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Python\future.c" />
|
||||
<ClCompile Include="..\Python\getargs.c" />
|
||||
<ClCompile Include="..\Python\getcompiler.c" />
|
||||
|
|
@ -617,7 +619,7 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<!-- BEGIN deepfreeze -->
|
||||
<ClCompile Include="..\Python\deepfreeze\deepfreeze.c" />
|
||||
<ClCompile Include="$(GeneratedFrozenModulesDir)deepfreeze.c" />
|
||||
<!-- END deepfreeze -->
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="$(IncludeExternals)">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue