forked from premiere/premiere-libtorrent
added test coverage build support for GCC
This commit is contained in:
parent
e865852c74
commit
89cba6df58
9
Jamfile
9
Jamfile
|
@ -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
|
||||
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.compose <debug-iterators>on : <define>_SCL_SECURE=1 <define>_GLIBCXX_DEBUG ;
|
||||
|
||||
feature test-coverage : off on : composite propagated ;
|
||||
|
||||
# required for openssl on windows
|
||||
lib ssleay32 : : <name>ssleay32 ;
|
||||
lib libeay32 : : <name>libeay32 ;
|
||||
|
|
Loading…
Reference in New Issue