@@ -88,7 +88,7 @@ cache:
before_install:
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update ; fi
- - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew install lzo; fi
+ - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew install lzo ccache; fi
install:
- if [ ! -z "${CHOST}" ]; then unset CC; fi
@@ -130,15 +130,13 @@ build_openssl () {
fi
}
-# Enable ccache
-if [ "${TRAVIS_OS_NAME}" != "osx" ] && [ -z ${CHOST+x} ]; then
- # ccache not available on osx, see:
- # https://github.com/travis-ci/travis-ci/issues/5567
- # also ccache not enabled for cross builds
- mkdir -p "${HOME}/bin"
- ln -s "$(which ccache)" "${HOME}/bin/${CC}"
- PATH="${HOME}/bin:${PATH}"
+mkdir -p "${HOME}/bin"
+if [ -z ${CHOST+x} ]; then
+ ln -s "$(which ccache)" "${HOME}/bin/${CC}"
+else
+ ln -s "$(which ccache)" "${HOME}/bin/${CHOST}-cc"
fi
+PATH="${HOME}/bin:${PATH}"
if [ ! -z ${CHOST+x} ]; then
#