Skip to content

Commit 672f0a7

Browse files
committed
Fix hardware name on macOS x86
1 parent 731433a commit 672f0a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build-hidapi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ echo -e "${green}---------------------------------------------------------------
424424
if [[ "$1" == "all" ]] || [[ "$1" == "darwin" ]] || [[ "$1" == "darwin-aarch64" ]]
425425
then
426426
# Check if build is possible with local environment
427-
if [[ "${hardwareName}" == "i386" ]]
427+
if [[ "${hardwareName}" == "x86_64" ]]
428428
then
429429
echo -e "${yellow}Building macOS Darwin x86 (x86-64) requires change of architecture.${plain}"
430430
echo -e "${yellow} Re-run with 'arch -arm64 zsh ./build-hidapi.sh darwin-aarch64'${plain}"

0 commit comments

Comments
 (0)