From b03c4a5437f57435167df1804e36148ad32d88bb Mon Sep 17 00:00:00 2001 From: Daniel Cheng Date: Fri, 17 Feb 2023 10:48:35 -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: I62e8cf7988b76eed48c95c4993f4aea73a164bc7 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/293981 Commit-Queue: Daniel Cheng Reviewed-by: Mirko Bonadei Cr-Commit-Position: refs/heads/main@{#39974} --- build_overrides/build.gni | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build_overrides/build.gni b/build_overrides/build.gni index 34f58c7e66..900367d0e1 100644 --- a/build_overrides/build.gni +++ b/build_overrides/build.gni @@ -9,6 +9,9 @@ # 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 + # Don't set this variable to true when building stadalone WebRTC, it is # only needed to support both WebRTC standalone and Chromium builds. build_with_chromium = false