Skip to content

Commit 5b0707e

Browse files
authored
Merge pull request #39 from ouya99/main
Merged : feat: apple-silicon support into 0.4.1-dev branch
2 parents 59079f4 + 8283fda commit 5b0707e

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

qubipy/crypto/crypto_silicon.dylib

157 KB
Binary file not shown.

qubipy/crypto/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@
88
import platform
99

1010
system = platform.system()
11+
machine = platform.machine()
1112

1213
if system == "Windows":
1314
lib_name = "crypto.dll"
1415
elif system == "Darwin":
15-
lib_name = "crypto.dylib"
16+
if machine == "arm64":
17+
lib_name = "crypto_silicon.dylib" # For Apple Silicon
18+
else:
19+
lib_name = "crypto_intel.dylib" # For Intel
1620
else:
1721
lib_name = "crypto.so"
1822

0 commit comments

Comments
 (0)