Skip to content

Commit a6bd68a

Browse files
committed
update cmake commands
1 parent 30524be commit a6bd68a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ addons:
3434
install:
3535
- git clone https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git -b llvm_release_80 spirv-llvm-translator
3636
- mkdir spirv-llvm-translator/build && cd spirv-llvm-translator/build
37-
- cmake .. -DCMAKE_INSTALL_PREFIX=./install && make -j`nproc` && make install
37+
- cmake .. -DCMAKE_INSTALL_PREFIX=./install -DBUILD_SHARED_LIBS=ON -DLLVM_BUILD_TOOLS=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
38+
- make -j`nproc` && make install
3839
- cd ../../
3940

4041
compiler:
@@ -43,5 +44,5 @@ compiler:
4344

4445
script:
4546
- mkdir build && cd build
46-
- cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DLLVM_NO_DEAD_STRIP=ON -DLLVMSPIRV_INCLUDED_IN_LLVM=OFF -DSPIRV_TRANSLATOR_DIR=../spirv-llvm-translator/build/install ../
47+
- 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 ../
4748
- make -j`nproc`

0 commit comments

Comments
 (0)