--- trunk/SConstruct 2006/05/11 04:40:18 590 +++ trunk/SConstruct 2006/05/12 08:25:16 591 @@ -43,6 +43,12 @@ ,None ) +opts.Add(BoolOption( + 'GCOV' + 'Whether to enable coverage testing in object code' + ,False +)) + # Package linking option opts.Add(EnumOption( 'PACKAGE_LINKING' @@ -1014,6 +1020,13 @@ if env['DEBUG']: env.Append(CCFLAGS=['-g']) +if env['GCOV']: + env.Append( + CPPFLAGS=['-g','-fprofile-arcs','-ftest-coverage'] + , LIBS=['gcov'] + , LINKFLAGS=['-fprofile-arcs','-ftest-coverage'] + ) + #------------- # TCL/TK GUI