mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-07-30 08:16:22 +08:00
[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:
parent
5d03bf9bab
commit
afff0cf68b
2
BUILD.gn
2
BUILD.gn
@ -69,7 +69,7 @@ group("libyuv") {
|
|||||||
all_dependent_configs = [ ":libyuv_config" ]
|
all_dependent_configs = [ ":libyuv_config" ]
|
||||||
deps = []
|
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
|
# Compile with clang in order to get inline assembly
|
||||||
public_deps = [ ":libyuv_internal(//build/toolchain/win:win_clang_x64)" ]
|
public_deps = [ ":libyuv_internal(//build/toolchain/win:win_clang_x64)" ]
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user