Skip to content

Commit

Permalink
added jemalloc to cmake built mongo binaries #869
Browse files Browse the repository at this point in the history
  • Loading branch information
leifwalsh committed Dec 30, 2013
1 parent 03a23ae commit 30becc2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/mongo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ add_dependencies(mongod generate_error_codes generate_action_types install_tdb_h
target_link_libraries(mongod
${TokuBackup_LIBRARIES}
)
if (NOT APPLE)
target_link_whole_libraries(mongod
jemalloc
)
endif ()
target_link_whole_libraries(mongod
coredb
coreserver
Expand All @@ -168,6 +173,11 @@ foreach (tool
)
add_executable(mongo${tool} tools/${tool})
add_dependencies(mongo${tool} generate_error_codes generate_action_types install_tdb_h)
if (NOT APPLE)
target_link_whole_libraries(mongo${tool})
jemalloc
)
endif ()
target_link_whole_libraries(mongo${tool}
alltools
base
Expand Down Expand Up @@ -197,6 +207,11 @@ foreach (tool
bsondump
)
add_dependencies(${tool} generate_error_codes generate_action_types)
if (NOT APPLE)
target_link_whole_libraries(${tool}
jemalloc
)
endif ()
target_link_whole_libraries(${tool}
alltools
base
Expand All @@ -213,6 +228,11 @@ add_executable(mongos
s/server
)
add_dependencies(mongos generate_error_codes generate_action_types)
if (NOT APPLE)
target_link_whole_libraries(mongos
jemalloc
)
endif ()
target_link_whole_libraries(mongos
mongoscore
coreserver
Expand All @@ -233,6 +253,11 @@ if (APPLE OR PCAP_FOUND)
set_target_properties(mongosniff PROPERTIES
COMPILE_DEFINITIONS MONGO_EXPOSE_MACROS
)
if (NOT APPLE)
target_link_whole_libraries(mongosniff
jemalloc
)
endif ()
target_link_whole_libraries(mongosniff
gridfs
serveronly
Expand Down
5 changes: 5 additions & 0 deletions src/mongo/dbtests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ file(GLOB testfiles *.cpp)
list(REMOVE_ITEM testfiles framework.cpp)
add_executable(smokeTest ${testfiles})
add_dependencies(smokeTest generate_error_codes generate_action_types install_tdb_h)
if (NOT APPLE)
target_link_whole_libraries(smokeTest
jemalloc
)
endif ()
target_link_whole_libraries(smokeTest
mongocommon
serveronly
Expand Down

0 comments on commit 30becc2

Please sign in to comment.