From be86a6d968c53681872fc05dc8919b5ecfa057aa Mon Sep 17 00:00:00 2001 From: "leozwang@webrtc.org" Date: Thu, 10 Jan 2013 22:15:51 +0000 Subject: [PATCH] Explicitly disable sincos optimization on Android. I uploaded this CL before, now it turned out that although it's an issue in compiler, but it will not be solved in short term, we have to work around in our code termporally. We can chat in person if you want to know more details. BUG= TEST=trybots Review URL: https://webrtc-codereview.appspot.com/1026006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3358 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/build/common.gypi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webrtc/build/common.gypi b/webrtc/build/common.gypi index e61f3877b..b420b09f2 100644 --- a/webrtc/build/common.gypi +++ b/webrtc/build/common.gypi @@ -236,6 +236,14 @@ 'WEBRTC_CLOCK_TYPE_REALTIME', 'WEBRTC_THREAD_RR', ], + # The Android NDK doesn't provide optimized versions of these + # functions. Ensure they are disabled for all compilers. + 'cflags': [ + '-fno-builtin-cos', + '-fno-builtin-sin', + '-fno-builtin-cosf', + '-fno-builtin-sinf', + ], 'conditions': [ ['enable_android_opensl==1', { 'defines': [