summaryrefslogtreecommitdiff
path: root/android/build.py
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-02-10 00:00:53 +0100
committerMax Kellermann <max@musicpd.org>2018-02-10 00:00:57 +0100
commit31c206bf80b85a033aa9dfbc6e56ac738c611e19 (patch)
tree43779bf741f17e5943f8d78a826df8ae4328f1fe /android/build.py
parent9187a0810620a597ff1e583f55f47be4de387e96 (diff)
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.
Diffstat (limited to 'android/build.py')
-rwxr-xr-xandroid/build.py2
1 files changed, 1 insertions, 1 deletions
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')