diff --git a/example/terminate_handler.cpp b/example/terminate_handler.cpp index 3854ca3..5c9dcf9 100644 --- a/example/terminate_handler.cpp +++ b/example/terminate_handler.cpp @@ -240,10 +240,14 @@ int test_inplace() { return 53; } +#if !defined(BOOST_MSVC) && !defined(BOOST_STACKTRACE_USE_WINDBG) + // This is very dependent on compiler and link flags. No sane way to make it work, because + // BOOST_NOINLINE could be ignored by MSVC compiler if link-time optimization is enabled. if (ss1 && ss1[0].name() != ss2[0].name()) { std::cerr << "Stacktraces differ:\n" << ss1 << "\n vs \n" << ss2 << '\n'; return 54; } +#endif } {