summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2015-12-01 10:18:41 +0100
committerRémi Verschelde <remi@verschelde.fr>2015-12-01 10:18:41 +0100
commite4e7e8f396bd4f2fe9b7d6807bd598ce0b53c963 (patch)
tree3c4b89e7f2ed7d827a208e8bea2ff097f90ff1eb
parent3aa0d0e9fda53756864d23c3f323903e49d0a001 (diff)
parent99e7641f3dc244004dfaca9cb1a62a43709a26ed (diff)
Merge pull request #2963 from akien-mga/pr-opus-arm-opt
Enable opus ARM optimisations only on ARM
-rw-r--r--platform/android/detect.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/android/detect.py b/platform/android/detect.py
index fe83798c56..66097a5149 100644
--- a/platform/android/detect.py
+++ b/platform/android/detect.py
@@ -211,7 +211,8 @@ def configure(env):
# env.Append(CPPFLAGS=['-DANDROID_ENABLED', '-DUNIX_ENABLED','-DMPC_FIXED_POINT'])
if(env["opus"]=="yes"):
- env.Append(CFLAGS=["-DOPUS_ARM_OPT"])
+ if (env["android_arch"]=="armv6" or env["android_arch"]=="armv7"):
+ env.Append(CFLAGS=["-DOPUS_ARM_OPT"])
env.opus_fixed_point="yes"
if (env['android_stl']=='yes'):