/[ascend]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 589 by johnpye, Thu May 11 03:10:43 2006 UTC revision 591 by johnpye, Fri May 12 08:25:16 2006 UTC
# Line 43  opts.Add( Line 43  opts.Add(
43      ,None      ,None
44  )  )
45    
46    opts.Add(BoolOption(
47        'GCOV'
48        'Whether to enable coverage testing in object code'
49        ,False
50    ))
51    
52  # Package linking option  # Package linking option
53  opts.Add(EnumOption(  opts.Add(EnumOption(
54      'PACKAGE_LINKING'      'PACKAGE_LINKING'
# Line 1014  if gcc_version4: Line 1020  if gcc_version4:
1020  if env['DEBUG']:  if env['DEBUG']:
1021      env.Append(CCFLAGS=['-g'])      env.Append(CCFLAGS=['-g'])
1022    
1023    if env['GCOV']:
1024        env.Append(
1025            CPPFLAGS=['-g','-fprofile-arcs','-ftest-coverage']
1026            , LIBS=['gcov']
1027            , LINKFLAGS=['-fprofile-arcs','-ftest-coverage']
1028        )
1029    
1030  #-------------  #-------------
1031  # TCL/TK GUI  # TCL/TK GUI
1032    

Legend:
Removed from v.589  
changed lines
  Added in v.591

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22