Skip to content

Commit 3273e6e

Browse files
authored
Merge pull request #155 from fzou1/update_ci_spirv-80
Build llvm spirv translator from source for opencl-clang CI test
2 parents 3d1085f + e1f0dcd commit 3273e6e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.travis.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ os:
55

66
# Use Ubuntu 16.04 LTS (Xenial) as the Linux testing environment.
77
dist: xenial
8-
sudo: false
98

109
git:
1110
depth: 1
@@ -33,16 +32,19 @@ addons:
3332
- libclang-8-dev
3433

3534
install:
36-
- export TAG=v8.0.1-3
37-
- export TARBALL=SPIRV-LLVM-Translator-${TAG}-linux-${BUILD_TYPE}.zip
38-
- wget https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/download/${TAG}/${TARBALL} -O /tmp/${TARBALL}
39-
- unzip /tmp/${TARBALL} -d spirv-llvm-translator
35+
- git clone https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git -b llvm_release_80 spirv-llvm-translator
36+
- cd spirv-llvm-translator
37+
- for patch in `ls ../patches/spirv/*.patch`; do echo $patch; git apply $patch; done
38+
- mkdir build && cd build
39+
- cmake .. -DCMAKE_INSTALL_PREFIX=./install -DBUILD_SHARED_LIBS=ON -DLLVM_BUILD_TOOLS=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
40+
- make -j`nproc` && make install
41+
- cd ../../
4042

4143
compiler:
4244
- gcc
4345
- clang
4446

4547
script:
4648
- mkdir build && cd build
47-
- 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 ..
48-
- make install
49+
- cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DLLVM_NO_DEAD_STRIP=ON -DLLVMSPIRV_INCLUDED_IN_LLVM=OFF -DSPIRV_TRANSLATOR_DIR=${TRAVIS_BUILD_DIR}/spirv-llvm-translator/build/install ../
50+
- make -j`nproc`

0 commit comments

Comments
 (0)