File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,6 @@ edit_init
32
32
home_dir=$( pwd)
33
33
echo " [home_dir: $home_dir ]"
34
34
35
- if [ " ${TRAVIS_OS_NAME} " == " osx" ]; then
36
- echo " [install ccache]"
37
- time brew install ccache
38
- fi
39
-
40
35
# install miniconda
41
36
MINICONDA_DIR=" $HOME /miniconda3"
42
37
@@ -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]"
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 ]"
89
92
else
90
93
echo " [Not using ccache]"
91
94
fi
You can’t perform that action at this time.
0 commit comments