set -ex | set -ex | ||||
if [[ "${CXX}" == clang* ]]; then | if [[ "${CXX}" == clang* ]]; then | ||||
export CXXFLAGS="-stdlib=libc++ -lc++abi" | |||||
export CXXFLAGS="-stdlib=libc++" | |||||
EXTRA="-DCMAKE_EXE_LINKER_FLAGS=-lc++abi -lc++" | |||||
fi | fi | ||||
mkdir build && cd build | mkdir build && cd build | ||||
cmake .. | |||||
cmake ${EXTRA} .. | |||||
make | make | ||||
make unittest | make unittest | ||||