mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 08:46:47 +08:00
Fix assert(current_toolchain == default_toolchain) failure on win bots.
Bug: libyuv:440517010 Change-Id: Ida12cce239448dae40524b4b629981116eeadacd Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/6904242 Commit-Queue: Jeremy Leconte <jleconte@google.com> Reviewed-by: Mirko Bonadei <mbonadei@chromium.org>
This commit is contained in:
parent
d98915a654
commit
36edc5fa8b
4
BUILD.gn
4
BUILD.gn
@ -494,6 +494,9 @@ if (libyuv_include_tests) {
|
||||
}
|
||||
|
||||
if (!build_with_chromium) {
|
||||
# GN evaluates each .gn file once per toolchain, so restricting to default
|
||||
# toolchain will ensure write_file() is called only once.
|
||||
if (current_toolchain == default_toolchain) {
|
||||
# Write debug logs to gn_logs.txt.
|
||||
# This is also required for Siso builds.
|
||||
import("//build/gn_logs.gni")
|
||||
@ -502,4 +505,5 @@ if (!build_with_chromium) {
|
||||
"",
|
||||
] + build_gn_logs
|
||||
write_file("$root_build_dir/gn_logs.txt", lines)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user