diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn index 56d06cf129..40368597b2 100644 --- a/webrtc/BUILD.gn +++ b/webrtc/BUILD.gn @@ -154,18 +154,14 @@ config("common_config") { } if (is_android && !is_clang) { + # The Android NDK doesn"t provide optimized versions of these + # functions. Ensure they are disabled for all compilers. cflags += [ - # The Android NDK doesn't provide optimized versions of these - # functions. Ensure they are disabled for all compilers. "-fno-builtin-cos", "-fno-builtin-sin", "-fno-builtin-cosf", "-fno-builtin-sinf", ] - cflags_c = [ - # Use C99 mode instead of C89 (default). - "-std=c99", - ] } } diff --git a/webrtc/build/common.gypi b/webrtc/build/common.gypi index be1451d643..5caa6cc10c 100644 --- a/webrtc/build/common.gypi +++ b/webrtc/build/common.gypi @@ -373,18 +373,14 @@ ], 'conditions': [ ['clang==0', { + # The Android NDK doesn't provide optimized versions of these + # functions. Ensure they are disabled for all compilers. 'cflags': [ - # The Android NDK doesn't provide optimized versions of these - # functions. Ensure they are disabled for all compilers. '-fno-builtin-cos', '-fno-builtin-sin', '-fno-builtin-cosf', '-fno-builtin-sinf', ], - 'cflags_c': [ - # Use C99 mode instead of C89 (default). - '-std=c99', - ] }], ], }],