diff --git a/BUILD.gn b/BUILD.gn index 2170564b5b..a0eda8f72e 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -42,7 +42,6 @@ if (!build_with_chromium) { ":rtc_unittests", ":slow_tests", ":video_engine_tests", - ":webrtc_lib_link_test", ":webrtc_nonparallel_tests", ":webrtc_perf_tests", "common_audio:common_audio_unittests", @@ -66,6 +65,12 @@ if (!build_with_chromium) { "video:sv_loopback", "video:video_loopback", ] + if (!is_asan) { + # Do not build :webrtc_lib_link_test because lld complains on some OS + # (e.g. when target_os = "mac") when is_asan=true. For more details, + # see bugs.webrtc.org/11027#c5. + deps += [ ":webrtc_lib_link_test" ] + } if (is_android) { deps += [ ":android_junit_tests",