Don't install clang when CLANG_VERSION is not set

This commit is contained in:
Patrick Niklaus 2016-11-19 12:01:31 +00:00 committed by Patrick Niklaus
parent 841c032a0d
commit 8c941d1344

View File

@ -126,7 +126,7 @@ before_install:
- ./third_party/mason/mason install cmake ${CMAKE_VERSION}
- export PATH=$(./third_party/mason/mason prefix cmake ${CMAKE_VERSION})/bin:${PATH}
- |
if [[ ${CLANG_VERSION:-false} != false ]]; then
if [[ ! -z ${CLANG_VERSION} ]]; then
export CCOMPILER='clang'
export CXXCOMPILER='clang++'
./third_party/mason/mason install clang++ ${CLANG_VERSION}