added support to build with tcmalloc to Jamfile

This commit is contained in:
Arvid Norberg 2008-04-13 21:11:37 +00:00
parent 937a794746
commit 2b55d7ebe5
1 changed files with 9 additions and 0 deletions

View File

@ -81,6 +81,11 @@ rule linking ( properties * )
result += <library>rt ;
}
if <tcmalloc>yes in $(properties)
{
result += <library>tcmalloc ;
}
if <boost>system in $(properties)
{
result += <library>boost_filesystem
@ -158,6 +163,8 @@ rule building ( properties * )
return $(result) ;
}
feature tcmalloc : no yes : composite propagated link-incompatible ;
feature need-librt : no yes : composite propagated link-incompatible ;
feature pool-allocators : on off : composite propagated link-incompatible ;
@ -233,6 +240,8 @@ lib ssl : : <name>ssl ;
# time functions used on linux require librt
lib librt : : <name>rt ;
lib tcmalloc : : <name>tcmalloc $(library-search-path) ;
# libz
lib zlib-target : : <name>z ;