Define enable_safe_libcxx in build_overrides/build.gni.

enable_safe_libcxx will be overridable by projects that embed Chrome's
//build using the build_overrides mechanism. All downstream projects
will need to define this new variable so Chrome can stop conditionally
defining enable_safe_libcxx upstream.

Bug: chromium:1385662
Change-Id: Iffae78c07a5c9b58db90ac037ab6d99577fd439c
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4264580
Commit-Queue: Mirko Bonadei <mbonadei@chromium.org>
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Reviewed-by: Mirko Bonadei <mbonadei@chromium.org>
This commit is contained in:
Daniel Cheng 2023-02-17 13:31:24 -08:00 committed by libyuv LUCI CQ
parent 1b3c4c12d4
commit 5c36ff76f1

View File

@ -13,6 +13,9 @@ build_with_chromium = false
# Some non-Chromium builds don't support building java targets. # Some non-Chromium builds don't support building java targets.
enable_java_templates = true enable_java_templates = true
# Enables assertions on safety checks in libc++.
enable_safe_libcxx = true
# Allow using custom suppressions files (currently not used by libyuv). # Allow using custom suppressions files (currently not used by libyuv).
asan_suppressions_file = "//build/sanitizers/asan_suppressions.cc" asan_suppressions_file = "//build/sanitizers/asan_suppressions.cc"
lsan_suppressions_file = "//build/sanitizers/lsan_suppressions.cc" lsan_suppressions_file = "//build/sanitizers/lsan_suppressions.cc"