Skip to content

Commit 0fa874b

Browse files
jrebackAnkurDedania
authored andcommitted
CI: set path for osx ccache
1 parent 2c4e377 commit 0fa874b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

ci/install_travis.sh

+8-5
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ edit_init
3232
home_dir=$(pwd)
3333
echo "[home_dir: $home_dir]"
3434

35-
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
36-
echo "[install ccache]"
37-
time brew install ccache
38-
fi
39-
4035
# install miniconda
4136
MINICONDA_DIR="$HOME/miniconda3"
4237

@@ -86,6 +81,14 @@ if [ "$USE_CACHE" ] && [ "${TRAVIS_OS_NAME}" == "linux" ]; then
8681
ccache=$(which ccache)
8782
echo "[ccache: $ccache]"
8883
export CC='ccache gcc'
84+
elif [ "$USE_CACHE" ] && [ "${TRAVIS_OS_NAME}" == "osx" ]; then
85+
echo "[Using ccache]"
86+
time brew install ccache
87+
export PATH=/usr/local/opt/ccache/libexec:$PATH
88+
gcc=$(which gcc)
89+
echo "[gcc: $gcc]"
90+
ccache=$(which ccache)
91+
echo "[ccache: $ccache]"
8992
else
9093
echo "[Not using ccache]"
9194
fi

0 commit comments

Comments
 (0)