summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/config/BUILD.gn7
-rw-r--r--build/config/compiler/BUILD.gn5
2 files changed, 7 insertions, 5 deletions
diff --git a/build/config/BUILD.gn b/build/config/BUILD.gn
index 37572d9..fe60b96 100644
--- a/build/config/BUILD.gn
+++ b/build/config/BUILD.gn
@@ -43,6 +43,13 @@ config("debug") {
"DYNAMIC_ANNOTATIONS_ENABLED=1",
"WTF_USE_DYNAMIC_ANNOTATIONS=1",
]
+
+ if (is_linux && !is_android && cpu_arch == "x64") {
+ # Enable libstdc++ debugging facilities to help catch problems early, see
+ # http://crbug.com/65151 .
+ # TODO(phajdan.jr): Should we enable this for all of POSIX?
+ defines += [ "_GLIBCXX_DEBUG=1" ]
+ }
}
config("release") {
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index ce0aae7..10617cd 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -128,11 +128,6 @@ config("compiler") {
}
if (cpu_arch == "x64") {
- # Enable libstdc++ debugging facilities to help catch problems early, see
- # http://crbug.com/65151 .
- # TODO(phajdan.jr): Should we enable this for all of POSIX?
- defines += [ "_GLIBCXX_DEBUG=1" ]
-
# Use gold for linking on 64-bit Linux only (on 32-bit it runs out of
# address space, and it doesn't support cross-compiling).
gold_path = rebase_path("//third_party/gold", ".", root_build_dir)