about summary refs log tree commit diff homepage
path: root/.travis/install-tcmalloc.sh
blob: 5a86380b632e1f22f8cd8b0e2cd012e003fc9acb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash -x
set -ev

if [ ${USE_TCMALLOC:-0} -eq 1 ] ; then
	# Get tcmalloc release
	wget https://github.com/gperftools/gperftools/releases/download/gperftools-2.4/gperftools-2.4.tar.gz
	tar xfz gperftools-2.4.tar.gz
	cd gperftools-2.4
	./configure --disable-dependency-tracking --disable-cpu-profiler --disable-heap-checker --disable-debugalloc  --enable-minimal --prefix=/usr
	make
	sudo make install
fi