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 <dcheng@chromium.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#39974}
This commit is contained in:
Daniel Cheng 2023-02-17 10:48:35 -08:00 committed by WebRTC LUCI CQ
parent 41daa40203
commit b03c4a5437

View File

@ -9,6 +9,9 @@
# 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
# Don't set this variable to true when building stadalone WebRTC, it is # Don't set this variable to true when building stadalone WebRTC, it is
# only needed to support both WebRTC standalone and Chromium builds. # only needed to support both WebRTC standalone and Chromium builds.
build_with_chromium = false build_with_chromium = false