diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-05-21 16:31:21 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-05-21 16:31:21 +0300 |
commit | 1574471822f8a034b33cb79f5e18f2c597a7dec5 (patch) | |
tree | 010ee31c865e0e15349aed5e218511880f039844 | |
parent | c9f16a4ab1eba56f7cc3d5901e1fdbda95840a08 (diff) | |
download | meson-1574471822f8a034b33cb79f5e18f2c597a7dec5.zip meson-1574471822f8a034b33cb79f5e18f2c597a7dec5.tar.gz meson-1574471822f8a034b33cb79f5e18f2c597a7dec5.tar.bz2 |
Option for GCC STL debug mode.
-rw-r--r-- | mesonbuild/compilers.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index 492b790..25eefc6 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -1742,7 +1742,10 @@ class GnuCPPCompiler(CPPCompiler): def get_options(self): opts = {'cpp_std' : coredata.UserComboOption('cpp_std', 'C++ language standard to use', ['none', 'c++03', 'c++11', 'c++14'], - 'none')} + 'none'), + 'cpp_debugstl': coredata.UserBooleanOption('cpp_debugstl', + 'STL debug mode', + False)} if self.gcc_type == GCC_MINGW: opts.update({ 'cpp_winlibs': coredata.UserStringArrayOption('c_winlibs', 'Standard Win libraries to link against', @@ -1755,6 +1758,8 @@ class GnuCPPCompiler(CPPCompiler): std = options['cpp_std'] if std.value != 'none': args.append('-std=' + std.value) + if options['cpp_debugstl'].value: + args.append('-D_GLIBCXX_DEBUG=1') return args def get_option_link_args(self, options): |