summaryrefslogtreecommitdiff
path: root/build/make/configure.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/make/configure.sh')
-rw-r--r--build/make/configure.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/build/make/configure.sh b/build/make/configure.sh
index 47cfef22d..7be583d72 100644
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -805,7 +805,12 @@ process_common_toolchain() {
;;
armv7|armv7s)
soft_enable neon
- soft_enable neon_asm
+ # Only enable neon_asm when neon is also enabled.
+ enabled neon && soft_enable neon_asm
+ # If someone tries to force it through, die.
+ if disabled neon && enabled neon_asm; then
+ die "Disabling neon while keeping neon-asm is not supported"
+ fi
soft_enable media
soft_enable fast_unaligned
;;