Skip to content

Commit

Permalink
setuptools.msvc: set host_dir correctly on ARM64 hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
swt2c committed Jan 3, 2025
1 parent 53d5ac2 commit 5ef90ee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setuptools/msvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,13 @@ def VCTools(self):

elif self.vs_ver >= 15.0:
host_dir = (
r'bin\HostX86%s' if self.pi.current_is_x86() else r'bin\HostX64%s'
r'bin\HostX86%s'
if self.pi.current_is_x86()
else (
r'bin\HostARM64%s'
if self.pi.current_cpu == 'arm64'
else r'bin\HostX64%s'
)
)
tools += [
os.path.join(si.VCInstallDir, host_dir % self.pi.target_dir(x64=True))
Expand Down

0 comments on commit 5ef90ee

Please sign in to comment.