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
3232home_dir=$( pwd)
3333echo " [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
4136MINICONDA_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 ]"
8992else
9093 echo " [Not using ccache]"
9194fi
You can’t perform that action at this time.
0 commit comments