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.
This commit is contained in:
Max Kellermann 2018-02-10 00:00:53 +01:00
parent 9187a08106
commit 31c206bf80
1 changed files with 1 additions and 1 deletions

View File

@ -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')