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: Idb81db0787fc19a9562bb3365cbc95e27d2677fb
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/103890
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
diff --git a/build_overrides/build.gni b/build_overrides/build.gni
index 0ef487e..446fa89 100644
--- a/build_overrides/build.gni
+++ b/build_overrides/build.gni
@@ -14,6 +14,9 @@
# PDFium builds don't support building java targets.
enable_java_templates = false
+# Enables assertions on safety checks in libc++.
+enable_safe_libcxx = true
+
# Whether to use the neon FPU instruction set or not.
if (current_cpu == "arm") {
arm_use_neon = true