summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-03-17 20:38:18 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-03-17 20:38:18 +0000
commit422c2d18c379bb27412cd740c9a8eadc9387f1a0 (patch)
treefd8adae42bd6f6250662d2267cbccb8a9d0fa716
parent75d8a7e2b11b527c9d74c97e6d7f9882fc4c5388 (diff)
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
-rw-r--r--SConstruct5
1 files changed, 5 insertions, 0 deletions
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
#