define NS3_DEBBUG_ENABLE when needed
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 07 Feb 2007 08:29:01 +0100
changeset 267 79efb83972b4
parent 266 a451b8daa1e6
child 268 a43b635230e8
define NS3_DEBBUG_ENABLE when needed
build.py
--- a/build.py	Tue Feb 06 21:42:31 2007 +0100
+++ b/build.py	Wed Feb 07 08:29:01 2007 +0100
@@ -458,8 +458,9 @@
 
 
         dbg_env = env.Copy()
-        env.Append(CFLAGS = debug_flags, 
-                    CXXFLAGS = debug_flags, )
+        dbg_env.Append(CFLAGS = debug_flags, 
+                       CXXFLAGS = debug_flags,
+                       CPPDEFINES = ['NS3_DEBUG_ENABLE'])
         # debug static support
         variant.static = True
         variant.env = dbg_env
@@ -469,8 +470,9 @@
             dbg_env.Alias('dbg-static', builder)
 
         dbg_env = env.Copy()
-        env.Append(CFLAGS=debug_flags, 
-                    CXXFLAGS=debug_flags, )
+        dbg_env.Append(CFLAGS=debug_flags, 
+                       CXXFLAGS=debug_flags,
+                       CPPDEFINES = ['NS3_DEBUG_ENABLE'])
         # debug shared support
         variant.static = False
         variant.env = dbg_env