Packets/80221Bundle: swap out MIHMessageRegistry in own header file; documentation...
[senf.git] / site_scons / senfutil.py
index 7217c84..1a2d4a1 100644 (file)
@@ -210,19 +210,15 @@ def DefaultOptions(env):
 
     # Set nice default options
     env.Append(
-        CXXFLAGS         = [ '-Wall', '-Woverloaded-virtual' ],
+        CXXFLAGS         = [ '-Wall', '-Woverloaded-virtual',  "${profile and '-pg' or None}" ],
         CXXFLAGS_final   = [ '-O3' ],
         CXXFLAGS_normal  = [ '-O2', '-g' ],
         CXXFLAGS_debug   = [ '-O0', '-g' ],
 
+        LINKFLAGS        = [ "${profile and '-pg' or None}" ],
         LINKFLAGS_normal = [ '-Wl,-S' ],
         LINKFLAGS_debug  = [ '-g' ],
     )
-    if env['profile']:
-        env.Append(
-            LINKFLAGS   = [ '-pg' ],
-            CXXFLAGS    = [ '-pg' ],
-    )
 
     env.Alias('all', '#')