Skip to content

Commit 6e926bb

Browse files
committed
Add aarch64 to Python Uniffi DDL loading
1 parent fef6e15 commit 6e926bb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

interop/python/replacement.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def _uniffi_load_indirect() -> ctypes.CDLL:
1818

1919
def library_file_name() -> str:
2020
is_x86: bool = platform.machine() in ("AMD64", "x86_64")
21-
is_arm: bool = platform.machine() == "arm64"
21+
is_arm: bool = platform.machine() in ("arm64", "aarch64")
2222
system: str = platform.system()
2323

2424
if is_x86 and system == "Darwin":
@@ -30,9 +30,6 @@ def library_file_name() -> str:
3030
elif is_arm and system == "Linux":
3131
return "aarch64-unknown-linux-gnu"
3232
elif is_x86 and system == "Windows":
33-
# Either Windows or the Python runtime on Windows requires that DLLs
34-
# have an extension of `.dll`. This is why this is the only dynamic
35-
# library with an extension.
3633
return "x86_64-pc-windows-gnu.dll"
3734
else:
3835
raise NotImplemented(f"No implementation of the Radix Engine Toolkit is available on your platform. Information detected: is_x86: {is_x86}, is_arm: {is_arm}, os: {system}")

0 commit comments

Comments
 (0)