Index: third_party/opus/opus.gyp |
diff --git a/third_party/opus/opus.gyp b/third_party/opus/opus.gyp |
index bc25921ae80d8427d8c76556187226654fc2dbb5..2668fea0f82217921da48690ce878658cb1f00e7 100644 |
--- a/third_party/opus/opus.gyp |
+++ b/third_party/opus/opus.gyp |
@@ -5,17 +5,19 @@ |
{ |
'variables': { |
'conditions': [ |
- ['target_arch=="arm" or target_arch=="armv7" or target_arch=="arm64"', { |
+ ['target_arch=="arm" or target_arch=="arm64"', { |
'use_opus_fixed_point%': 1, |
}, { |
'use_opus_fixed_point%': 0, |
}], |
- ['target_arch=="arm" or target_arch=="armv7"', { |
+ ['target_arch=="arm"', { |
'use_opus_arm_optimization%': 1, |
}, { |
'use_opus_arm_optimization%': 0, |
}], |
- ['target_arch=="arm"', { |
+ ['target_arch=="arm" and (OS=="win" or OS=="android" or OS=="linux")', { |
+ # Based on the conditions in celt/arm/armcpu.c: |
+ # defined(_MSC_VER) || defined(__linux__). |
'use_opus_rtcd%': 1, |
}, { |
'use_opus_rtcd%': 0, |
@@ -81,7 +83,7 @@ |
], |
}, |
}], |
- ['os_posix==1 and (target_arch=="arm" or target_arch=="armv7" or target_arch=="arm64")', { |
+ ['os_posix==1 and (target_arch=="arm" or target_arch=="arm64")', { |
'cflags!': ['-Os'], |
'cflags': ['-O3'], |
}], |