From 5c36ff76f1ce6550294c9c8b7777ffce15473b76 Mon Sep 17 00:00:00 2001 From: Daniel Cheng Date: Fri, 17 Feb 2023 13:31:24 -0800 Subject: [PATCH] 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 Reviewed-by: Frank Barchard Reviewed-by: Mirko Bonadei --- build_overrides/build.gni | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build_overrides/build.gni b/build_overrides/build.gni index c84903133..d9d01d51b 100644 --- a/build_overrides/build.gni +++ b/build_overrides/build.gni @@ -13,6 +13,9 @@ build_with_chromium = false # Some non-Chromium builds don't support building java targets. 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). asan_suppressions_file = "//build/sanitizers/asan_suppressions.cc" lsan_suppressions_file = "//build/sanitizers/lsan_suppressions.cc"