Skip to content

Commit

Permalink
Add check to disable armsve on Apple M1.
Browse files Browse the repository at this point in the history
  • Loading branch information
devinamatthews committed Oct 27, 2022
1 parent 2dd692b commit c803b03
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,17 @@ blacklistbu_add()
fi
}

blacklistos_add()
{
# Check whether we've already blacklisted the given sub-config so
# we don't output redundant messages.
if [ $(is_in_list "$1" "${config_blist}") == "false" ]; then

echowarn "The operating system does not support building '$1'; adding to blacklist."
config_blist="${config_blist} $1"
fi
}

blacklist_init()
{
config_blist=""
Expand Down Expand Up @@ -1989,6 +2000,13 @@ check_assembler()
fi
}

check_os()
{
if [[ "$(uname -s)" == "Darwin" && "$(uname -m)" == "arm64" ]]; then
blacklistos_add "armsve"
fi
}

try_assemble()
{
local cc cflags asm_src asm_base asm_bin rval
Expand Down Expand Up @@ -2886,6 +2904,9 @@ main()
get_binutils_version
check_assembler

# Check if there is any incompatibility due to the operating system.
check_os

# Remove duplicates and whitespace from the blacklist.
blacklist_cleanup

Expand Down

0 comments on commit c803b03

Please sign in to comment.