File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ branches:
15
15
- master
16
16
- ocl-open-70
17
17
- ocl-open-80
18
+ - ocl-open-90
18
19
19
20
env :
20
21
matrix :
24
25
addons :
25
26
apt :
26
27
sources :
27
- - sourceline : ' deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial main'
28
+ - sourceline : ' deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main'
28
29
key_url : ' https://apt.llvm.org/llvm-snapshot.gpg.key'
29
30
- ubuntu-toolchain-r-test
30
31
packages :
@@ -33,14 +34,20 @@ addons:
33
34
- libclang-9-dev
34
35
35
36
install :
36
- - wget https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/download/dev-build/SPIRV-LLVM-Translator-dev-build-linux-Release.zip -O /tmp/SPIRV-LLVM-Translator-dev-build-linux-${BUILD_TYPE}.zip
37
- - unzip /tmp/SPIRV-LLVM-Translator-dev-build-linux-${BUILD_TYPE}.zip -d spirv-llvm-translator
37
+ - export TAG=v9.0.0-1
38
+ - export TARBALL=SPIRV-LLVM-Translator-${TAG}-linux-${BUILD_TYPE}.zip
39
+ - wget https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/download/${TAG}/${TARBALL} -O /tmp/${TARBALL}
40
+ - unzip /tmp/${TARBALL} -d spirv-llvm-translator
38
41
39
42
compiler :
40
43
- gcc
41
44
- clang
42
45
43
46
script :
47
+ # For some reason cmake expects lit-cpuid to be installed.
48
+ # But llvm-9 packages in the current state do not provide it.
49
+ # As a temporary workaround we create a dummy file just to pacify cmake.
50
+ - sudo touch /usr/lib/llvm-9/bin/lit-cpuid
44
51
- mkdir build && cd build
45
52
- cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DLLVM_NO_DEAD_STRIP=ON -DLLVMSPIRV_INCLUDED_IN_LLVM=OFF -DSPIRV_TRANSLATOR_DIR=./spirv-llvm-translator -DCMAKE_INSTALL_PREFIX=./install ..
46
53
- make install
You can’t perform that action at this time.
0 commit comments