From 31c206bf80b85a033aa9dfbc6e56ac738c611e19 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 10 Feb 2018 00:00:53 +0100 Subject: [PATCH] android/build.py: add -mfpu=vfp, explicitly disabling NEON Apparently, clang defaults to NEON when ARMv7 is used. Not all ARMv7 CPUs we target have NEON, so we need to disable that. --- android/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.py b/android/build.py index 0b001e7da..328b02edf 100755 --- a/android/build.py +++ b/android/build.py @@ -67,7 +67,7 @@ class AndroidNdkToolchain: common_flags = '-Os -g' common_flags += ' -fPIC' - common_flags += ' -march=armv7-a -mfloat-abi=softfp' + common_flags += ' -march=armv7-a -mfpu=vfp -mfloat-abi=softfp' toolchain_bin = os.path.join(toolchain_path, 'bin') llvm_bin = os.path.join(llvm_path, 'bin')