You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
212B

  1. #!/bin/bash
  2. set -ex
  3. if [[ "${CXX}" == clang* ]]; then
  4. export CXXFLAGS="-stdlib=libc++"
  5. EXTRA="-DCMAKE_EXE_LINKER_FLAGS=-lc++abi -lc++"
  6. fi
  7. mkdir build && cd build
  8. cmake ${EXTRA} ..
  9. make
  10. make unittest