File tree 2 files changed +15
-1
lines changed 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 9
9
10
10
os :
11
11
- linux
12
+ - osx
12
13
13
14
rust :
14
15
- stable
Original file line number Diff line number Diff line change 1
1
set -e
2
2
pushd ~
3
3
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
+
4
9
function llvm_version_triple() {
5
10
if [ " $1 " == " 3.8" ]; then
6
11
echo " 3.8.0"
@@ -18,9 +23,17 @@ function llvm_download() {
18
23
tar -xf ${LLVM} .tar.xz -C llvm --strip-components=1
19
24
20
25
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
21
29
}
22
30
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
24
37
25
38
popd
26
39
set +e
You can’t perform that action at this time.
0 commit comments