1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 05:11:06 +02:00

fix architecture detection for Apple Silicon

fix auto-install on macOS Apple Silicon, which reports architecture "arm64" on uname -a rather than "aarch64"
This commit is contained in:
ferebee 2023-08-09 11:42:23 +02:00
parent ef68dfa54c
commit 80aabea29b

View file

@ -587,6 +587,7 @@ main() {
"x86_64" ) croc_arch="64bit";;
"amd64" ) croc_arch="64bit";;
"aarch64" ) croc_arch="ARM64";;
"arm64" ) croc_arch="ARM64";;
"armv7l" ) croc_arch="ARM";;
"i686" ) croc_arch="32bit";;
* ) croc_arch="unknown";;