From 422c2d18c379bb27412cd740c9a8eadc9387f1a0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 17 Mar 2008 20:38:18 +0000 Subject: add STL_DEBUG option to enable easy use of _GLIBCXX_DEBUG, for STL debugging git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3151 d708f5d6-7413-0410-9779-e7cbd77b26cf --- SConstruct | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 804fa6bf91..bfec57a5fc 100644 --- a/SConstruct +++ b/SConstruct @@ -34,6 +34,7 @@ opts.AddOptions( BoolOption('NATIVE_OSX_KEYS', 'Build key bindings file that matches OS X conventions', 0), BoolOption('OLDFONTS', 'Old school font sizes', 0), BoolOption('DEBUG', 'Set to build with debugging information and no optimizations', 0), + BoolOption('STL_DEBUG', 'Set to build with Standard Template Library Debugging', 0), PathOption('DESTDIR', 'Set the intermediate install "prefix"', '/'), EnumOption('DIST_TARGET', 'Build target for cross compiling packagers', 'auto', allowed_values=('auto', 'i386', 'i686', 'x86_64', 'powerpc', 'tiger', 'panther', 'leopard', 'none' ), ignorecase=2), BoolOption('DMALLOC', 'Compile and link using the dmalloc library', 0), @@ -766,10 +767,14 @@ else: env.Append(CCFLAGS=" ".join (opt_flags)) env.Append(LINKFLAGS=" ".join (opt_flags)) +if env['STL_DEBUG'] == 1: + env.Append(CXXFLAGS="-D_GLIBCXX_DEBUG") + if env['UNIVERSAL'] == 1: env.Append(CCFLAGS="-arch i386 -arch ppc") env.Append(LINKFLAGS="-arch i386 -arch ppc") + # # warnings flags # -- cgit v1.2.3