From ca4316168b8d240775723782d1d1fc1a86726866 Mon Sep 17 00:00:00 2001 From: wwinder Date: Thu, 23 Jul 2015 20:49:50 -0400 Subject: [PATCH 1/2] Added 'BOOST_TEST_DISABLE_ALT_STACK' flag to use with ESXi build. --- include/boost/test/impl/execution_monitor.ipp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/test/impl/execution_monitor.ipp b/include/boost/test/impl/execution_monitor.ipp index 9929f74b53..936127d370 100644 --- a/include/boost/test/impl/execution_monitor.ipp +++ b/include/boost/test/impl/execution_monitor.ipp @@ -156,7 +156,8 @@ namespace { void _set_se_translator( void* ) {} } # endif # if !defined(__CYGWIN__) && !defined(__QNXNTO__) && !defined(__bgq__) && \ - (!defined(__ANDROID__) || __ANDROID_API__ >= 8) + (!defined(__ANDROID__) || __ANDROID_API__ >= 8) && \ + !defined(BOOST_TEST_DISABLE_ALT_STACK) # define BOOST_TEST_USE_ALT_STACK # endif From c7ac366beb5efc8570d729dc14f2f777bce9b67e Mon Sep 17 00:00:00 2001 From: Will Winder Date: Tue, 24 May 2016 10:19:15 -0400 Subject: [PATCH 2/2] Comment describing what BOOST_TEST_DISABLE_ALT_STACK is for. --- include/boost/test/impl/execution_monitor.ipp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/test/impl/execution_monitor.ipp b/include/boost/test/impl/execution_monitor.ipp index 936127d370..ce2551a226 100644 --- a/include/boost/test/impl/execution_monitor.ipp +++ b/include/boost/test/impl/execution_monitor.ipp @@ -155,6 +155,8 @@ namespace { void _set_se_translator( void* ) {} } # include # endif +// BOOST_TEST_DISABLE_ALT_STACK is available in case you're crosscompiling a +// target like ESXi which has no proper flag and doesn't support the alt stack. # if !defined(__CYGWIN__) && !defined(__QNXNTO__) && !defined(__bgq__) && \ (!defined(__ANDROID__) || __ANDROID_API__ >= 8) && \ !defined(BOOST_TEST_DISABLE_ALT_STACK)