diff --git a/BUILD.gn b/BUILD.gn index 2288e24a5..d3fbd33e2 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -69,7 +69,7 @@ group("libyuv") { all_dependent_configs = [ ":libyuv_config" ] deps = [] - if (is_win && target_cpu == "x64") { + if (is_win && target_cpu == "x64" && current_toolchain == default_toolchain) { # Compile with clang in order to get inline assembly public_deps = [ ":libyuv_internal(//build/toolchain/win:win_clang_x64)" ] } else {