From d0a9206d6a39e42259b9ad24df101f50d9fc39ed Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 5 Sep 2018 06:04:53 +0300 Subject: [PATCH] Call _set_abort_behavior on clang-win too --- include/boost/core/lightweight_test.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/core/lightweight_test.hpp b/include/boost/core/lightweight_test.hpp index b6ca7b3..b71d86c 100644 --- a/include/boost/core/lightweight_test.hpp +++ b/include/boost/core/lightweight_test.hpp @@ -47,7 +47,7 @@ public: test_result() : report_(false) , errors_(0) { -#ifdef BOOST_MSVC +#if defined(BOOST_MSVC) || ( defined(_MSC_VER) && defined(__clang__) ) ::_set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT); #endif }