0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

tcmalloc option

This commit is contained in:
Eliot Horowitz 2011-03-11 16:10:17 -05:00
parent e6d61f1c93
commit f8c7144e29

View File

@ -153,6 +153,7 @@ add_option( "distcc" , "use distcc for distributing builds" , 0 , False )
# to use CPUPROFILE=/tmp/profile
# to view pprof -gv mongod /tmp/profile
add_option( "pg", "link against profiler" , 0 , False , "profile" )
add_option( "tcmalloc" , "link against tcmalloc" , 0 , False )
add_option( "gdbserver" , "build in gdb server support" , 0 , True )
add_option( "heapcheck", "link to heap-checking malloc-lib and look for memory leaks during tests" , 0 , False )
@ -1010,6 +1011,10 @@ def doConfigure( myenv , needPcre=True , shell=False ):
myenv.Append(LINKCOM=" $STATICFILES")
myenv.Append(STATICFILES=staticlibfiles)
if has_option( "tcmalloc" ):
myCheckLib( "tcmalloc" , True ); # if successful, appedded 'tcmalloc' to myenv[ LIBS ]
return conf.Finish()
env = doConfigure( env )