Browse Source

Enable opus ARM optimisations only on ARM

i.e. do not enable it for x86.
Fixes #2962.
Rémi Verschelde 10 năm trước cách đây
mục cha
commit
99e7641f3d
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      platform/android/detect.py

+ 2 - 1
platform/android/detect.py

@@ -210,7 +210,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'):