summaryrefslogtreecommitdiff
path: root/src/mongo/util/SConscript
diff options
context:
space:
mode:
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",
]
)