Mercurial > nand-ecoscentric
changeset 2245:42e30b66c3f8
Work around problem with C++ exceptions in current cygwin
| author | bartv |
|---|---|
| date | Tue, 11 Jul 2006 09:36:36 +0000 |
| parents | fdefb3632fb0 |
| children | cf44f62361c7 |
| files | host/tools/configtool/standalone/common/ChangeLog host/tools/configtool/standalone/common/ecosconfig.cxx |
| diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/host/tools/configtool/standalone/common/ChangeLog +++ b/host/tools/configtool/standalone/common/ChangeLog @@ -1,3 +1,8 @@ +2006-07-10 Bart Veer <bartv@ecoscentric.com> + + * ecosconfig.cxx: add early C++ exception throw to work around + a cygwin issue. + 2005-12-16 Bart Veer <bartv@ecoscentric.com> * cdl_exec.cxx (cmd_remove): replace reserved word interface with
--- a/host/tools/configtool/standalone/common/ecosconfig.cxx +++ b/host/tools/configtool/standalone/common/ecosconfig.cxx @@ -72,6 +72,12 @@ int main (int argc, char * argv []) { bool enable_debug_set = false; // --enable-debug or --disable-debug int debug_level = 0; // --enable-debug=[0|1|2] +#ifdef __CYGWIN__ + try { + throw int(42); + } catch(...) { }; +#endif + Tcl_FindExecutable(argv[0]); // getopt() cannot easily be used here since this code has to
