Changeset 1038

Show
Ignore:
Timestamp:
01/14/08 15:42:52 (8 months ago)
Author:
patrick
Message:

For non-optimized builds on Windows, use /EHa instead of /EHsc to define the
exception handling behavior. When combined with a C exception translator
function (as identified by a call to _set_se_translator()), this could be
useful in debugging crashes. I have not yet been convinced of this, however,
but I will pursue it further.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/fcptr_stable_jun07/SConstruct

    r951 r1038  
    869869      if GetPlatform() == "win32": 
    870870         inst_paths["lib_inst_combo"] = pj(inst_paths["lib_inst_combo"], lib_subdir) 
     871 
     872         # Enable structured exception handling for non-optimized builds. The 
     873         # idea here is to allow Windows runtime errors that are converted to 
     874         # C++ exceptions to be handled in such a way that the debugger can be 
     875         # used effectively to track down the problem. We do not do this for 
     876         # optimized builds because switching from /EHsc to /EHa results in 
     877         # performance degredation. 
     878         base_bldr.enableStructuredExceptions("optimized" != combo["type"]) 
    871879      else: 
    872880         if "debug" == combo["type"]: