From afff0cf68bdd2d713c81040a4bd1b7c7fe69e39c Mon Sep 17 00:00:00 2001 From: Takashi Toyoshima Date: Tue, 14 Jul 2026 16:23:35 +0900 Subject: [PATCH] [libyuv] Fix toolchain dependency for Windows x64 When building with a custom toolchain on Windows x64, the libyuv target was forcing a dependency on the default win_clang_x64 toolchain. This prevents compiling libyuv with the custom toolchain. This CL limits the win_clang_x64 redirection to only when the current toolchain is the default toolchain. Bug: 534570563 Change-Id: I4cb9321d35e6d9b81eddcecc0ef32a5df370a252 TAG=agy CONV=6ebbc93a-688d-40e4-a255-09b00c07c429 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/8090589 Reviewed-by: Mirko Bonadei Reviewed-by: Wan-Teh Chang Commit-Queue: Wan-Teh Chang --- BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {