added test coverage build support for GCC

This commit is contained in:
Arvid Norberg 2007-08-21 17:43:19 +00:00
parent e865852c74
commit 89cba6df58
1 changed files with 9 additions and 0 deletions

View File

@ -56,6 +56,13 @@ rule linking ( properties * )
; ;
} }
if <test-coverage>on in $(properties)
&& ( <toolset>gcc in $(properties)
|| <toolset>darwin in $(properties) )
{
result += <cxxflags>-fprofile-arcs <cxxflags>-ftest-coverage ;
}
# clock_gettime on linux requires librt # clock_gettime on linux requires librt
if <target-os>linux in $(properties) if <target-os>linux in $(properties)
{ {
@ -155,6 +162,8 @@ feature boost : system source : link-incompatible propagated ;
feature debug-iterators : off on : composite propagated link-incompatible ; feature debug-iterators : off on : composite propagated link-incompatible ;
feature.compose <debug-iterators>on : <define>_SCL_SECURE=1 <define>_GLIBCXX_DEBUG ; feature.compose <debug-iterators>on : <define>_SCL_SECURE=1 <define>_GLIBCXX_DEBUG ;
feature test-coverage : off on : composite propagated ;
# required for openssl on windows # required for openssl on windows
lib ssleay32 : : <name>ssleay32 ; lib ssleay32 : : <name>ssleay32 ;
lib libeay32 : : <name>libeay32 ; lib libeay32 : : <name>libeay32 ;