summaryrefslogtreecommitdiff
path: root/src/third_party/gperftools-2.7
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2019-04-03 16:00:59 -0400
committerBilly Donahue <billy.donahue@mongodb.com>2019-07-15 11:32:31 -0400
commitd6bd2c5885215c29d723f02d8607f2c6d662aacc (patch)
treec89ac8d7e58d25f6c6f749231c0c0c1556722e20 /src/third_party/gperftools-2.7
parent71fced4ef1bdbc1e5b517057eb15be256eaf0ba7 (diff)
downloadmongo-d6bd2c5885215c29d723f02d8607f2c6d662aacc.tar.gz
SERVER-33259 add libunwind to third_party
Diffstat (limited to 'src/third_party/gperftools-2.7')
-rw-r--r--src/third_party/gperftools-2.7/SConscript12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/third_party/gperftools-2.7/SConscript b/src/third_party/gperftools-2.7/SConscript
index c905f72c0c1..cb5683c63dc 100644
--- a/src/third_party/gperftools-2.7/SConscript
+++ b/src/third_party/gperftools-2.7/SConscript
@@ -3,7 +3,6 @@
Import("env")
Import("has_option")
Import("debugBuild")
-Import("consumerMods")
env = env.Clone()
@@ -96,11 +95,14 @@ if not debugBuild:
if (not debugBuild) or (not env['TARGET_ARCH'] in ['x86_64', 'i386']):
env.Append(CPPDEFINES=["NO_TCMALLOC_SAMPLES"])
-env.Append(CPPPATH=["platform/${TARGET_OS}_${TARGET_ARCH}/internal/src",
- "dist/src"])
+gperftools_root = env.Dir("#/src/third_party/gperftools-2.7")
+gperftools_platform = gperftools_root.Dir("platform/${TARGET_OS}_${TARGET_ARCH}")
-# 'consumerMods' propagates to consumers that Inject (depend on) gperftools.
-consumerMods['CPPPATH'] = "#/src/third_party/gperftools-2.7/platform/${TARGET_OS}_${TARGET_ARCH}/include"
+env.Append(CPPPATH=[gperftools_platform.Dir("internal/src"),
+ gperftools_root.Dir("dist/src")])
+
+# propagates to consumers that Inject (depend on) gperftools.
+env.RegisterConsumerModifications(CPPPATH=[gperftools_platform.Dir("include")])
def removeIfPresent(lst, item):
try: