Fix wrong architecture detection on Windows

Windows passes architecture of amd64, which needs to be converted
to x64 for the library names.
This commit is contained in:
Sergey Sharybin 2024-02-22 14:01:01 +01:00
parent 3dc832a904
commit e5e5591c7e
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ def get_effective_architecture(args: argparse.Namespace) -> str:
architecture = platform.machine().lower()
# Normalize the architecture name.
if architecture == 'x86_64':
if architecture in ("x86_64", "amd64"):
architecture = "x64"
assert (architecture in ("x64", "arm64"))