diff options
author | Cary Clark <caryclark@google.com> | 2018-07-13 10:39:39 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-17 18:09:41 +0000 |
commit | eb1d9004f56a1fe812916e254ca2cce5c0209194 (patch) | |
tree | 8e09708c662b3adc18506099d6a4060ad3f6b8e8 /gn | |
parent | e80cd44cb2c549b709022a62a1fa9f8d6a7822ec (diff) |
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 <caryclark@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Reviewed-on: https://skia-review.googlesource.com/141083
Commit-Queue: Cary Clark <caryclark@skia.org>
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, |