Skip to content

Commit

Permalink
Fix hardware name on macOS x86
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-rowe committed Apr 16, 2024
1 parent 731433a commit 672f0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-hidapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ echo -e "${green}---------------------------------------------------------------
if [[ "$1" == "all" ]] || [[ "$1" == "darwin" ]] || [[ "$1" == "darwin-aarch64" ]]
then
# Check if build is possible with local environment
if [[ "${hardwareName}" == "i386" ]]
if [[ "${hardwareName}" == "x86_64" ]]
then
echo -e "${yellow}Building macOS Darwin x86 (x86-64) requires change of architecture.${plain}"
echo -e "${yellow} Re-run with 'arch -arm64 zsh ./build-hidapi.sh darwin-aarch64'${plain}"
Expand Down

0 comments on commit 672f0a7

Please sign in to comment.