From 3c3db72e69ef5dcdde57f1fbbd939579d50d96f1 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Wed, 11 Jul 2018 17:09:34 -0400 Subject: build debug on linux for gdb Building with this define enables additional checks for standard library functions when running gdb, and allows printing std::string. R=halcanary@google.com Bug: skia: Change-Id: Ib71c179d8cbacbcd7f17a1c85f912072918e6be8 Reviewed-on: https://skia-review.googlesource.com/140786 Commit-Queue: Cary Clark Reviewed-by: Mike Klein --- gn/BUILD.gn | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gn/BUILD.gn') 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, -- cgit v1.2.3