From eb1d9004f56a1fe812916e254ca2cce5c0209194 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Fri, 13 Jul 2018 10:39:39 -0400 Subject: build for gdb on linux 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: I7f2dc12336f9239443328f13264be7a6b285c4b5 Reviewed-on: https://skia-review.googlesource.com/140786 Commit-Queue: Cary Clark Reviewed-by: Mike Klein Reviewed-on: https://skia-review.googlesource.com/141083 Commit-Queue: Cary Clark --- gn/BUILD.gn | 3 +++ 1 file changed, 3 insertions(+) (limited to '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