Skip to content

Commit 6e1ce43

Browse files
authored
Use Visual Studio 2022 for builds instead of 2019 (#377)
1 parent 55787ea commit 6e1ce43

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414
jobs:
1515
pythonbuild:
1616
if: ${{ github.repository_owner == 'indygreg' || github.event_name != 'schedule' }}
17-
runs-on: 'windows-2019'
17+
runs-on: 'windows-2022'
1818
steps:
1919
- uses: actions/checkout@v4
2020

@@ -66,7 +66,7 @@ jobs:
6666
options: 'freethreaded+pgo'
6767

6868
needs: pythonbuild
69-
runs-on: 'windows-2019'
69+
runs-on: 'windows-2022'
7070
steps:
7171
- uses: actions/checkout@v4
7272
with:
@@ -96,7 +96,7 @@ jobs:
9696
- name: Build
9797
shell: cmd
9898
run: |
99-
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\${{ matrix.vcvars }}"
99+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\${{ matrix.vcvars }}"
100100
py.exe -3.9 build-windows.py --python ${{ matrix.py }} --sh c:\cygwin\bin\sh.exe --options ${{ matrix.options }}
101101
102102
- name: Validate Distribution

cpython-windows/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ def main() -> None:
18871887
parser.add_argument(
18881888
"--vs",
18891889
choices={"2019", "2022"},
1890-
default="2019",
1890+
default="2022",
18911891
help="Visual Studio version to use",
18921892
)
18931893
parser.add_argument(

src/validation.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ const PE_ALLOWED_LIBRARIES: &[&str] = &[
107107
"USERENV.dll",
108108
"VERSION.dll",
109109
"VCRUNTIME140.dll",
110+
"VCRUNTIME140_1.dll",
110111
"WINMM.dll",
111112
"WS2_32.dll",
112113
// Our libraries.

0 commit comments

Comments
 (0)