From d2546cc59202604f37b58f1254c5e4fd7a93995b Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 10 Feb 2015 04:00:44 +0000 Subject: [PATCH] test coverage fix in Jamfile --- Jamfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Jamfile b/Jamfile index 7e3b10714..5a66d780b 100755 --- a/Jamfile +++ b/Jamfile @@ -28,6 +28,11 @@ VERSION = 1.1.0 ; rule coverage ( properties * ) { local result ; + if ! on + { + return $(result) ; + } + if gcc in $(properties) || darwin in $(properties) || clang in $(properties) @@ -35,7 +40,6 @@ rule coverage ( properties * ) result += -fprofile-arcs -ftest-coverage ; if gcc in $(properties) - || darwin in $(properties) { result += -lgcov ; } @@ -426,8 +430,7 @@ feature boost-link : static shared : propagated composite ; feature debug-iterators : off on : composite propagated link-incompatible ; feature.compose on : _SCL_SECURE=1 _GLIBCXX_DEBUG ; -feature test-coverage : off on : composite propagated ; -feature.compose on : @coverage ; +feature test-coverage : off on : composite propagated link-incompatible ; feature fpic : off on : composite propagated link-incompatible ; feature.compose on : -fPIC ; @@ -670,6 +673,7 @@ local usage-requirements = # enable cancel support in asio BOOST_ASIO_ENABLE_CANCELIO @linking + @coverage # these compiler settings just makes the compiler standard conforming msvc:/Zc:wchar_t msvc:/Zc:forScope