File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 55
66# Use Ubuntu 16.04 LTS (Xenial) as the Linux testing environment.
77dist : xenial
8- sudo : false
98
109git :
1110 depth : 1
@@ -33,16 +32,19 @@ addons:
3332 - libclang-8-dev
3433
3534install :
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
4143compiler :
4244 - gcc
4345 - clang
4446
4547script :
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`
You can’t perform that action at this time.
0 commit comments