Skip to content

Commit 46fac93

Browse files
larseggertcclauss
andauthored
Update pylib/gyp/MSVSVersion.py
Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 0b10137 commit 46fac93

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pylib/gyp/MSVSVersion.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ 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 = "amd64" if is_host_arch_x64 else (
113+
"arm64" if os.environ.get("PROCESSOR_ARCHITECTURE") == "ARM64" else "x86"
114+
)
113115
msvc_target_arch = {"x64": "amd64"}.get(target_arch, target_arch)
114116
arg = host_arch
115117
if host_arch != msvc_target_arch:

0 commit comments

Comments
 (0)