Skip to content

Commit

Permalink
configure: disable runtime cpu detect w/armv7*-darwin
Browse files Browse the repository at this point in the history
The default behavior changed in:
148d108 Refactor and extend run-time CPU feature detection on Arm

This fixes build errors with these targets as there is no runtime cpu
detection defined for them.

Change-Id: Ie6b0bae1fc3e244d7dfcc823f60c3e466ccade79
  • Loading branch information
jzern committed Jun 7, 2024
1 parent ec129c1 commit a2508b5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build/make/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,15 @@ EOF
# Process architecture variants
case ${toolchain} in
arm*)
soft_enable runtime_cpu_detect
case ${toolchain} in
armv7*-darwin*)
# Runtime cpu detection is not defined for these targets.
enabled runtime_cpu_detect && disable_feature runtime_cpu_detect
;;
*)
soft_enable runtime_cpu_detect
;;
esac

if [ ${tgt_isa} = "armv7" ] || [ ${tgt_isa} = "armv7s" ]; then
soft_enable neon
Expand Down

0 comments on commit a2508b5

Please sign in to comment.