fix(ci): Match any clang binary
This commit is contained in:
parent
7a70ab8942
commit
5b544e9581
@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
cd "${TRAVIS_BUILD_DIR}/build" && make -j"${JOBS}"
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
mkdir -p "${TRAVIS_BUILD_DIR}/build"
|
||||
cd "${TRAVIS_BUILD_DIR}/build" || false
|
||||
cmake \
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
export DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
|
||||
export LLVM_ROOT="${DEPS_DIR}/llvm-${LLVM_VERSION}"
|
||||
|
||||
@ -6,7 +6,7 @@ mkdir -p "${DEPS_DIR}"
|
||||
mkdir -p "${LLVM_ROOT}"
|
||||
|
||||
# Update compiler flags
|
||||
if [ "${CXX}" = "clang++" ]; then
|
||||
if [ "${CXX:0:7}" = "clang++" ]; then
|
||||
export CXX="clang++-3.8"
|
||||
export CC="clang-3.8"
|
||||
export CXXFLAGS="${CXXFLAGS} -Qunused-arguments"
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
if [ -z "$(ls -A "${DEPS_DIR}/cmake/bin" 2>/dev/null)" ]; then
|
||||
mkdir -p cmake && travis_retry wget --no-check-certificate --quiet -O - "${CMAKE_URL}" | tar --strip-components=1 -xz -C cmake
|
||||
fi
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
if [ "${CXX}" = "clang++" ]; then
|
||||
#!/bin/bash
|
||||
if [ "${CXX:0:7}" = "clang++" ]; then
|
||||
if [ -z "$(ls -A "${LLVM_ROOT}/install/include" 2>/dev/null)" ]; then
|
||||
mkdir -p "${LLVM_ROOT}" "${LLVM_ROOT}/build" "${LLVM_ROOT}/projects/libcxx" "${LLVM_ROOT}/projects/libcxxabi"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
echo "${CXX} --version"
|
||||
eval "${CXX} --version"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
if [ "${BUILD_TESTS:-OFF}" = "ON" ]; then
|
||||
for test in tests/unit_test.*; do
|
||||
[ -x "$test" ] || continue
|
||||
|
Loading…
Reference in New Issue
Block a user