File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -178,24 +178,28 @@ def _find_exe(exe, paths=None):
178
178
return exe
179
179
180
180
181
- if get_host_platform () == "win-arm64" :
182
- # Use the native MSVC host if the host platform would need expensive
183
- # emulation for x86.
184
- PLAT_TO_VCVARS = {
181
+ PLAT_TO_VCVARS = (
182
+ {
183
+ # Use the native MSVC host if the host platform would need expensive
184
+ # emulation for x86.
185
185
'win32' : 'arm64_x86' ,
186
186
'win-amd64' : 'arm64_amd64' ,
187
187
'win-arm32' : 'arm64_arm' ,
188
188
'win-arm64' : 'arm64' ,
189
189
}
190
- else :
191
- # Always cross-compile from x86 to work with the lighter-weight MSVC
192
- # installs that do not include native 64-bit tools.
193
- PLAT_TO_VCVARS = {
190
+ if get_host_platform () == "win-arm64"
191
+ else {
192
+ # Always cross-compile from x86 to work with the lighter-weight MSVC
193
+ # installs that do not include native 64-bit tools.
194
194
'win32' : 'x86' ,
195
195
'win-amd64' : 'x86_amd64' ,
196
196
'win-arm32' : 'x86_arm' ,
197
197
'win-arm64' : 'x86_arm64' ,
198
198
}
199
+ )
200
+ """
201
+ Maps get_platform() results to values expected by vcvarsall.bat.
202
+ """
199
203
200
204
201
205
class MSVCCompiler (CCompiler ):
You can’t perform that action at this time.
0 commit comments