Skip to content

Commit

Permalink
Add aarch64 to Python Uniffi DDL loading
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOmarA committed Jul 23, 2024
1 parent fef6e15 commit 6e926bb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions interop/python/replacement.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def _uniffi_load_indirect() -> ctypes.CDLL:

def library_file_name() -> str:
is_x86: bool = platform.machine() in ("AMD64", "x86_64")
is_arm: bool = platform.machine() == "arm64"
is_arm: bool = platform.machine() in ("arm64", "aarch64")
system: str = platform.system()

if is_x86 and system == "Darwin":
Expand All @@ -30,9 +30,6 @@ def library_file_name() -> str:
elif is_arm and system == "Linux":
return "aarch64-unknown-linux-gnu"
elif is_x86 and system == "Windows":
# Either Windows or the Python runtime on Windows requires that DLLs
# have an extension of `.dll`. This is why this is the only dynamic
# library with an extension.
return "x86_64-pc-windows-gnu.dll"
else:
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}")
Expand Down

0 comments on commit 6e926bb

Please sign in to comment.