8000 fix build for win x32 · MarshalX/python-webrtc@cfa8597 · GitHub
[go: up one dir, main page]

Skip to content

Commit cfa8597

Browse files
committed
fix build for win x32
1 parent 759cf3d commit cfa8597

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/build_windows_wheels.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- main
66
- pypi-dev
7+
- win-32
78
paths:
89
- '.github/workflows/build_windows_wheels.yml'
910
- 'python-webrtc/cpp/**'
@@ -19,8 +20,8 @@ jobs:
1920
strategy:
2021
matrix:
2122
arch: [
22-
# "x32",
23-
"x64",
23+
"x32",
24+
# "x64",
2425
]
2526

2627
env:
@@ -52,7 +53,7 @@ jobs:
5253
if: matrix.arch == 'x32'
5354
working-directory: "C:/src"
5455
env:
55-
TARGET_ARCH: ia32
56+
TARGET_ARCH: x86
5657
CIBW_BEFORE_BUILD: call vcvars32.bat
5758
CIBW_ARCHS: x86
5859
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7"

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ else()
166166
rtc_build_tools=false
167167
)
168168

169-
if ("$ENV{TARGET_ARCH}" STREQUAL "ia32")
169+
if ("$ENV{TARGET_ARCH}" STREQUAL "x86")
170170
list(APPEND GN_GEN_ARGS
171-
target_arch=ia32
171+
target_cpu=x86
172172
)
173173
endif()
174174
endif()

0 commit comments

Comments
 (0)
0