From bcc997e0e7a788fd9fc800da54b6553e78ce0793 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 25 Aug 2013 21:24:49 +0300 Subject: [PATCH] Enable STL debugging in debug mode. --- environment.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/environment.py b/environment.py index 2b280e0fa..dd178e102 100644 --- a/environment.py +++ b/environment.py @@ -556,11 +556,15 @@ class ClangCCompiler(CCompiler): class GnuCPPCompiler(CPPCompiler): std_warn_flags = ['-Wall', '-Winvalid-pch'] std_opt_flags = ['-O2'] - + std_debug_flags = ['-g', '-D_GLIBCXX_DEBUG'] + def __init__(self, exelist, is_cross, exe_wrap): CPPCompiler.__init__(self, exelist, is_cross, exe_wrap) self.id = 'gcc' + def get_debug_flags(self): + return GnuCPPCompiler.std_debug_flags + def get_std_warn_flags(self): return GnuCPPCompiler.std_warn_flags