blob: 0bc26616e411ddddf68cad0f9fda9d47ecc3e609 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash -x
set -ev
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
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
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
if [ ${USE_TCMALLOC:-0} -eq 1 ] ; then
echo "Error: Requested to install TCMalloc on macOS, which is not supported"
exit 1
fi
else
echo "Unhandled TRAVIS_OS_NAME \"${TRAVIS_OS_NAME}\""
exit 1
fi
|