2016-12-15 19:22:42 +00:00
|
|
|
#!/bin/bash
|
2016-11-19 07:55:46 +00:00
|
|
|
export DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
|
|
|
|
export LLVM_ROOT="${DEPS_DIR}/llvm-${LLVM_VERSION}"
|
|
|
|
|
|
|
|
mkdir -p "${DEPS_DIR}"
|
|
|
|
mkdir -p "${LLVM_ROOT}"
|
|
|
|
|
|
|
|
# Update compiler flags
|
2016-12-15 19:22:42 +00:00
|
|
|
if [ "${CXX:0:7}" = "clang++" ]; then
|
2016-11-19 07:55:46 +00:00
|
|
|
export CXX="clang++-3.8"
|
|
|
|
export CC="clang-3.8"
|
|
|
|
export CXXFLAGS="${CXXFLAGS} -Qunused-arguments"
|
2016-12-15 20:32:05 +00:00
|
|
|
elif [ "${CXX:0:3}" = "g++" ]; then
|
|
|
|
export CXX="g++-5"
|
|
|
|
export CC="gcc-5"
|
|
|
|
elif [ "${CXX:0:3}" = "gcc" ]; then
|
2016-11-19 07:55:46 +00:00
|
|
|
export CXX="g++-5"
|
|
|
|
export CC="gcc-5"
|
|
|
|
fi
|