File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010os :
1111 - linux
12+ - osx
1213
1314rust :
1415 - stable
Original file line number Diff line number Diff line change 11set -e
22pushd ~
33
4+ # Workaround for Travis CI macOS bug (https://github.com/travis-ci/travis-ci/issues/6307)
5+ if [ " ${TRAVIS_OS_NAME} " == " osx" ]; then
6+ rvm get head || true
7+ fi
8+
49function llvm_version_triple() {
510 if [ " $1 " == " 3.8" ]; then
611 echo " 3.8.0"
@@ -18,9 +23,17 @@ function llvm_download() {
1823 tar -xf ${LLVM} .tar.xz -C llvm --strip-components=1
1924
2025 export LLVM_CONFIG_PATH=` pwd` /llvm/bin/llvm-config
26+ if [ " ${TRAVIS_OS_NAME} " == " osx" ]; then
27+ cp llvm/lib/libclang.dylib /usr/local/lib/libclang.dylib
28+ fi
2129}
2230
23- llvm_download linux-gnu-ubuntu-14.04
31+
32+ if [ " ${TRAVIS_OS_NAME} " == " linux" ]; then
33+ llvm_download linux-gnu-ubuntu-14.04
34+ else
35+ llvm_download apple-darwin
36+ fi
2437
2538popd
2639set +e
You can’t perform that action at this time.
0 commit comments