summaryrefslogtreecommitdiff
path: root/src/third_party/gperftools-2.7/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/gperftools-2.7/SConscript')
-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: