Skip to content

Commit 3c16049

Browse files
larseggertcclauss
andcommitted
Update pylib/gyp/MSVSVersion.py
Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 8506802 commit 3c16049

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

pylib/gyp/MSVSVersion.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,15 @@ def _SetupScriptInternal(self, target_arch):
109109
)
110110

111111
# Always use a native executable, cross-compiling if necessary.
112-
host_arch = "amd64" if is_host_arch_x64 else ("arm64" if os.environ.get("PROCESSOR_ARCHITECTURE") == "ARM64" else "x86")
112+
host_arch = (
113+
"amd64"
114+
if is_host_arch_x64
115+
else (
116+
"arm64"
117+
if os.environ.get("PROCESSOR_ARCHITECTURE") == "ARM64"
118+
else "x86"
119+
)
120+
)
113121
msvc_target_arch = {"x64": "amd64"}.get(target_arch, target_arch)
114122
arg = host_arch
115123
if host_arch != msvc_target_arch:

0 commit comments

Comments
 (0)