diff --git a/webrtc.gni b/webrtc.gni index 4b3ce8635f..c6509c837b 100644 --- a/webrtc.gni +++ b/webrtc.gni @@ -356,7 +356,10 @@ webrtc_root = get_path_info(".", "abspath") rtc_common_configs = [ webrtc_root + ":common_config" ] if (is_mac || is_ios) { - rtc_common_configs += [ "//build/config/compiler:enable_arc" ] + if (filter_include(default_compiler_configs, + [ "//build/config/compiler:enable_arc" ]) == []) { + rtc_common_configs += [ "//build/config/compiler:enable_arc" ] + } } # Global public configuration that should be applied to all WebRTC targets. You