mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +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
20
BUILD.gn
20
BUILD.gn
@ -494,12 +494,16 @@ if (libyuv_include_tests) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!build_with_chromium) {
|
if (!build_with_chromium) {
|
||||||
# Write debug logs to gn_logs.txt.
|
# GN evaluates each .gn file once per toolchain, so restricting to default
|
||||||
# This is also required for Siso builds.
|
# toolchain will ensure write_file() is called only once.
|
||||||
import("//build/gn_logs.gni")
|
if (current_toolchain == default_toolchain) {
|
||||||
lines = [
|
# Write debug logs to gn_logs.txt.
|
||||||
"Generated during 'gn gen' by //BUILD.gn.",
|
# This is also required for Siso builds.
|
||||||
"",
|
import("//build/gn_logs.gni")
|
||||||
] + build_gn_logs
|
lines = [
|
||||||
write_file("$root_build_dir/gn_logs.txt", lines)
|
"Generated during 'gn gen' by //BUILD.gn.",
|
||||||
|
"",
|
||||||
|
] + build_gn_logs
|
||||||
|
write_file("$root_build_dir/gn_logs.txt", lines)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user