Skip to content

Commit

Permalink
arm64: use packaged libname "arm64" on any arm64-compatible machine
Browse files Browse the repository at this point in the history
  • Loading branch information
aoirint committed Oct 23, 2023
1 parent c8912c5 commit 5f2f5b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion soundfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@
_packaged_libname = 'libsndfile_' + _architecture()[0] + '.dll'
elif _sys.platform == 'linux':
from platform import machine as _machine
_packaged_libname = 'libsndfile_' + _machine() + '.so'
if _machine() in ["aarch64", "aarch64_be", "armv8b", "armv8l"]:
_packaged_libname = 'libsndfile_arm64.so'
else:
_packaged_libname = 'libsndfile_' + _machine() + '.so'
else:
raise OSError('no packaged library for this platform')

Expand Down

0 comments on commit 5f2f5b3

Please sign in to comment.