Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aarch64 #14

Merged
merged 2 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cobhan/cobhan.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ def load_library(
machine = platform.machine()
if machine in ("x86_64", "AMD64"):
arch_part = "-x64"
elif machine == "arm64":
elif machine in ("arm64", "aarch64"):
arch_part = "-arm64"
else:
raise UnsupportedOperation("Unsupported CPU")
raise UnsupportedOperation(f"Unsupported CPU: {machine}")

# Get absolute library path
resolved_library_path = pathlib.Path(library_path).resolve()
Expand Down Expand Up @@ -151,7 +151,7 @@ def __set_payload(self, buf: CBuf, payload: bytearray, length: int) -> None:
:param payload: The payload to be copied
:param length: The length of the payload
"""
self.__set_header(buf, length)
self.__set_header(buf, length)
buf[self.__sizeof_header:self.__sizeof_header + length] = payload

def bytearray_to_buf(self, payload: bytearray) -> Any:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cobhan"
version = "0.4.2"
version = "0.4.3"
description = "Cobhan FFI"
authors = [
"Jeremiah Gowdy <jeremiah@gowdy.me>",
Expand Down