We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 111df8e commit 6e44ad2Copy full SHA for 6e44ad2
ci/install_travis.sh
@@ -32,11 +32,6 @@ edit_init
32
home_dir=$(pwd)
33
echo "[home_dir: $home_dir]"
34
35
-if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
36
- echo "[install ccache]"
37
- time brew install ccache
38
-fi
39
-
40
# install miniconda
41
MINICONDA_DIR="$HOME/miniconda3"
42
@@ -86,6 +81,14 @@ if [ "$USE_CACHE" ] && [ "${TRAVIS_OS_NAME}" == "linux" ]; then
86
81
ccache=$(which ccache)
87
82
echo "[ccache: $ccache]"
88
83
export CC='ccache gcc'
84
+elif [ "$USE_CACHE" ] && [ "${TRAVIS_OS_NAME}" == "osx" ]; then
85
+ echo "[Using ccache]"
+ time brew install ccache
+ export PATH=/usr/local/opt/ccache/libexec:$PATH
+ gcc=$(which gcc)
89
+ echo "[gcc: $gcc]"
90
+ ccache=$(which ccache)
91
+ echo "[ccache: $ccache]"
92
else
93
echo "[Not using ccache]"
94
fi
0 commit comments