aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gn/BUILD.gn3
1 files changed, 3 insertions, 0 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index 1d4cd7b035..ea6c8194a5 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -209,6 +209,9 @@ config("default") {
if (is_linux) {
libs += [ "pthread" ]
+ if (is_debug && sanitize == "") {
+ defines += [ "_GLIBCXX_DEBUG" ]
+ }
}
if (is_mac) {
# Disable linker warnings. They're usually just annoyances like,