diff options
author | Cary Clark <caryclark@google.com> | 2018-07-11 17:09:34 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-12 00:16:48 +0000 |
commit | 3c3db72e69ef5dcdde57f1fbbd939579d50d96f1 (patch) | |
tree | 5c1453866b3c82aafb211eb8c47e68cbe17fa678 /gn | |
parent | 0954a19703245a64eb34e1a151af88201d1b8592 (diff) |
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 <caryclark@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'gn')
-rw-r--r-- | gn/BUILD.gn | 3 |
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, |