Skip to content

Commit c75ce5f

Browse files
committed
Fix build issue
1 parent f10cecc commit c75ce5f

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.travis.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,21 @@ branches:
1515
- ocl-open-110
1616

1717
env:
18+
global:
19+
- LLVM_VERSION=11
1820
matrix:
1921
- BUILD_TYPE=Release
2022
- BUILD_TYPE=Debug
2123

22-
addons:
23-
apt:
24-
sources:
25-
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main'
26-
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
27-
- ubuntu-toolchain-r-test
28-
packages:
29-
llvm-11-dev
30-
llvm-11-tools
31-
libclang-11-dev
24+
before-install:
25+
- curl -L "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
26+
- echo "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic main" | sudo tee -a ${TRAVIS_ROOT}/etc/apt/sources.list
27+
- sudo apt-get update
28+
- sudo apt-get -yq --no-install-suggests --no-install-recommends install
29+
llvm-${LLVM_VERSION}-dev
30+
llvm-${LLVM_VERSION}-tools
31+
libclang-${LLVM_VERSION}-dev
32+
libclang-cpp${LLVM_VERSION}-dev
3233

3334
install:
3435
- git clone https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git spirv-llvm-translator

0 commit comments

Comments
 (0)