From a592d243c6adde989c188ef6428eeb7b296e1f0c Mon Sep 17 00:00:00 2001 From: Edward Diener Date: Sat, 21 Mar 2020 18:49:15 -0400 Subject: [PATCH] Fix for Issue about config-link-test. Added some code for making sure BOOST_NO_EXCEPTIONS is defined if it needs to be. --- include/boost/config/compiler/codegear.hpp | 7 +++++++ test/Jamfile.v2 | 1 + 2 files changed, 8 insertions(+) diff --git a/include/boost/config/compiler/codegear.hpp b/include/boost/config/compiler/codegear.hpp index d197e1ec..f13b2d62 100644 --- a/include/boost/config/compiler/codegear.hpp +++ b/include/boost/config/compiler/codegear.hpp @@ -22,6 +22,13 @@ #define BOOST_NO_FENV_H /* temporarily disable this until we can link against fegetround fesetround feholdexcept */ #define BOOST_NO_CXX11_HDR_EXCEPTION /* Reported this bug to Embarcadero with the latest C++ Builder Rio release */ +// +// check for exception handling support: +// +#if !defined(_CPPUNWIND) && !defined(__EXCEPTIONS) && !defined(BOOST_NO_EXCEPTIONS) +# define BOOST_NO_EXCEPTIONS +#endif + /* // On non-Win32 platforms let the platform config figure this out: diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index f1104497..afe06f04 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -92,6 +92,7 @@ test-suite config : #input-files : #requirements shared + single BOOST_DYN_LINK=1 BOOST_CONFIG_NO_LIB=1 vxworks:shared