Sujay Phadke has uploaded this change for review. (
https://gem5-review.googlesource.com/8642
Change subject: scons: check for tcmalloc doesn't work
......................................................................
scons: check for tcmalloc doesn't work
The check within SConstruct for 'tcmalloc' library doesn't work. Config:
Ubuntu 17.10, GXX: 7.2,
python: 2.7.14, Linux kernel: 4.13
Modified it to use "conf.CheckHeader" to locate the header within the
directory: '/usr/include/gperftools/tcmalloc.h'
Change-Id: I70b75afad1335a8e06f1c299ff1f321e14f81167
Signed-off-by: Sujay Phadke
---
M SConstruct
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/SConstruct b/SConstruct
index df647e7..593d878 100755
--- a/SConstruct
+++ b/SConstruct
@@ -801,6 +801,8 @@
if not GetOption('without_tcmalloc'):
if conf.CheckLib('tcmalloc'):
main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS'])
+ elif conf.CheckHeader('tcmalloc', 'gperftools/tcmalloc.h'):
+ main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS'])
elif conf.CheckLib('tcmalloc_minimal'):
main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS'])
else:
--
To view, visit https://gem5-review.googlesource.com/8642
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I70b75afad1335a8e06f1c299ff1f321e14f81167
Gerrit-Change-Number: 8642
Gerrit-PatchSet: 1
Gerrit-Owner: Sujay Phadke <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev