aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-08-25 21:24:49 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-08-25 21:24:49 +0300
commitbcc997e0e7a788fd9fc800da54b6553e78ce0793 (patch)
tree444fc3a55f347737ad6d682ec80b2fda92a68b7b /environment.py
parent2a155072de71a39f3fc9e50c52e417ce67cdaf5d (diff)
downloadmeson-bcc997e0e7a788fd9fc800da54b6553e78ce0793.zip
meson-bcc997e0e7a788fd9fc800da54b6553e78ce0793.tar.gz
meson-bcc997e0e7a788fd9fc800da54b6553e78ce0793.tar.bz2
Enable STL debugging in debug mode.
Diffstat (limited to 'environment.py')
-rw-r--r--environment.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/environment.py b/environment.py
index 2b280e0..dd178e1 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