[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 <mbonadei@chromium.org>
Reviewed-by: Wan-Teh Chang <wtc@google.com>
Commit-Queue: Wan-Teh Chang <wtc@google.com>
This commit is contained in:
Takashi Toyoshima 2026-07-14 16:23:35 +09:00 committed by libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com
parent 5d03bf9bab
commit afff0cf68b

View File

@ -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 {