From 89cba6df58040e22220d9a9ffc8089ed302c9639 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 21 Aug 2007 17:43:19 +0000 Subject: [PATCH] added test coverage build support for GCC --- Jamfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Jamfile b/Jamfile index 2feb2591e..f9b68dce6 100755 --- a/Jamfile +++ b/Jamfile @@ -56,6 +56,13 @@ rule linking ( properties * ) ; } + if on in $(properties) + && ( gcc in $(properties) + || darwin in $(properties) ) + { + result += -fprofile-arcs -ftest-coverage ; + } + # clock_gettime on linux requires librt if linux in $(properties) { @@ -155,6 +162,8 @@ feature boost : system source : link-incompatible propagated ; feature debug-iterators : off on : composite propagated link-incompatible ; feature.compose on : _SCL_SECURE=1 _GLIBCXX_DEBUG ; +feature test-coverage : off on : composite propagated ; + # required for openssl on windows lib ssleay32 : : ssleay32 ; lib libeay32 : : libeay32 ;