summaryrefslogtreecommitdiff
path: root/src/mongo/util/SConscript
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2016-03-24 08:13:03 -0400
committerAndrew Morrow <acm@mongodb.com>2016-03-24 19:12:16 -0400
commit10b650835a78fbf7ebe9cf26926cc45556efd178 (patch)
tree41e2a43fd1096841e153e904803e90a3ee89f1af /src/mongo/util/SConscript
parenta19406fdedac2bff515a0b162c8d496b11f4e455 (diff)
downloadmongo-10b650835a78fbf7ebe9cf26926cc45556efd178.tar.gz
SERVER-13476 Make the gperftools cpu profiler work again
Diffstat (limited to 'src/mongo/util/SConscript')
-rw-r--r--src/mongo/util/SConscript16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/mongo/util/SConscript b/src/mongo/util/SConscript
index 371b3f1c845..3e94e20e1ce 100644
--- a/src/mongo/util/SConscript
+++ b/src/mongo/util/SConscript
@@ -333,13 +333,27 @@ if has_option('gcov'):
],
)
+if has_option('use-cpu-profiler'):
+ quick_exit_env.Append(
+ CPPDEFINES=[
+ 'MONGO_CPU_PROFILER',
+ ],
+ )
+
+ if not use_system_version_of_library('tcmalloc'):
+ quick_exit_env.InjectThirdPartyIncludePaths(
+ 'tcmalloc'
+ )
+
quick_exit_env.Library(
target='quick_exit',
source=[
'quick_exit.cpp',
],
LIBDEPS=[
- # NOTE: You *must not* add any library dependencies to the quick_exit library
+ # NOTE: You *must not* add any other library dependencies to
+ # the quick_exit library
+ "$BUILD_DIR/third_party/shim_allocator",
]
)