Skip to content

Commit 1177f60

Browse files
committed
fix: ARM
1 parent 2e18a02 commit 1177f60

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/c2pa/lib.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ def get_platform_identifier(cpu_arch: Optional[CPUArchitecture] = None) -> str:
6262
elif system == "windows":
6363
return "x86_64-pc-windows-msvc"
6464
elif system == "linux":
65+
print("## System is Linux, arch is: ", _get_architecture()())
66+
if _get_architecture() in ['arm64', 'aarch64']:
67+
return "aarch64-unknown-linux-gnu"
6568
return "x86_64-unknown-linux-gnu"
6669
else:
6770
raise ValueError(f"Unsupported operating system: {system}")

0 commit comments

Comments
 (0)