diff --git a/webrtc/build/common.gypi b/webrtc/build/common.gypi index b420b09f2a..a3fc14a9f1 100644 --- a/webrtc/build/common.gypi +++ b/webrtc/build/common.gypi @@ -236,20 +236,22 @@ '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': [ 'WEBRTC_ANDROID_OPENSLES', ], }], + ['clang!=1', { + # 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