Skip to content

Commit

Permalink
Update build-windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shdwmtr committed Jun 11, 2024
1 parent 7c1364b commit dc80334
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ jobs:
# enter the source directory
cd Python-3.11.8
# specify multithreaded runtime library, to exlude the need of MSVS runtime 140
- name: (Python) Stage Python 3.11.8 static build
run: |
cd Python-3.11.8
$vcxprojPath = "PCbuild/python.vcxproj"
$vcxprojPath = "PCbuild/pythoncore.vcxproj"
$content = Get-Content $vcxprojPath -Raw # Read the entire content as a single string
Write-Output "Original Content:"
Write-Output $content
$pattern = '<PreprocessorDefinitions>Py_BUILD_CORE;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>'
$pattern = '<PreprocessorDefinitions Condition="`$(IncludeExternals)">_Py_HAVE_ZLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>'
$replacement = @"
<PreprocessorDefinitions>Py_BUILD_CORE;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>Py_BUILD_CORE;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="`$(IncludeExternals)">_Py_HAVE_ZLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary Condition="'`$(Configuration)|`$(Platform)'=='Release|Win32'">MultiThreaded</RuntimeLibrary>
<RuntimeLibrary Condition="'`$(Configuration)|`$(Platform)'=='Debug|Win32'">MultiThreadedDebug</RuntimeLibrary>
"@
Expand Down

0 comments on commit dc80334

Please sign in to comment.