diff options
-rw-r--r-- | build2/b.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/build2/b.cxx b/build2/b.cxx index 1510b39..f4c249b 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -112,10 +112,6 @@ main (int argc, char* argv[]) if (signal (SIGPIPE, SIG_IGN) == SIG_ERR) fail << "unable to ignore broken pipe (SIGPIPE) signal: " << system_error (errno, generic_category ()); // Sanitize. -#else - if (!ops.serial_stop ()) - SetErrorMode (SetErrorMode (0) | // Returns the current mode. - SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX); #endif // Parse the command line. We want to be able to specify options, vars, @@ -300,6 +296,12 @@ main (int argc, char* argv[]) } } +#ifdef _WIN32 + if (!ops.serial_stop ()) + SetErrorMode (SetErrorMode (0) | // Returns the current mode. + SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX); +#endif + // Register builtin modules. // { |