]> granicus.if.org Git - libvpx/commitdiff
Disable neon assembly when neon is disabled
authorJohann <johannkoenig@google.com>
Mon, 8 Dec 2014 23:13:37 +0000 (15:13 -0800)
committerJohann <johannkoenig@google.com>
Tue, 9 Dec 2014 18:46:32 +0000 (10:46 -0800)
Change-Id: Idde266cd7287bb6bee016c90efeafa67550f94c6

build/make/configure.sh

index 47cfef22dbd2ab2535b8ff5d86aac99de88ceedb..7be583d724f43d769d2464a1969f84695d4b1fc6 100644 (file)
@@ -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
           ;;