Skip to content

Commit 64eeb50

Browse files
committed
Fix architecture string for macOS and Linux library files
1 parent 7860d66 commit 64eeb50

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

python/openiap/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ def _load_library(self):
566566
if architecture == 'x86_64':
567567
lib_file = 'libopeniap-macos-x64.dylib'
568568
elif architecture == 'arm64':
569-
lib_file = 'libopeniap-macos-armx64.dylib'
569+
lib_file = 'libopeniap-macos-arm64.dylib'
570570
else:
571571
raise LibraryLoadError("Unsupported architecture " + architecture)
572572
elif sys.platform == 'linux':
@@ -580,9 +580,9 @@ def _load_library(self):
580580
elif architecture == 'aarch64':
581581
# is Musl ?
582582
if os.path.exists('/lib/libc.musl-aarch64.so.1'):
583-
lib_file = 'libopeniap-linux-musl-armx64.a'
583+
lib_file = 'libopeniap-linux-musl-arm64.a'
584584
else:
585-
lib_file = 'libopeniap-linux-armx64.so'
585+
lib_file = 'libopeniap-linux-arm64.so'
586586
else:
587587
raise LibraryLoadError("Unsupported architecture " + architecture)
588588
elif sys.platform == 'freebsd':

0 commit comments

Comments
 (0)