build.sh 421 B

12345678910111213141516
  1. #!/bin/sh
  2. rm -rf build
  3. mkdir build
  4. cd build
  5. # Note that gcc-mp-5 on darwin is still ~2000 MiB/sec faster than the system clang
  6. # clang-mp-dev (4.0) also
  7. case `uname -s` in
  8. #Darwin) CXX=clang++-mp-devel CC=clang-mp-devel cmake .. ;;
  9. #Darwin) CXX=g++-mp-6 CC=gcc-mp-6 cmake .. ;;
  10. Darwin) cmake .. ;;
  11. FreeBSD) CXX=clang++ CC=clang cmake .. ;;
  12. *) CXX=clang++-4.0 CC=clang-4.0 cmake .. ;;
  13. esac
  14. make -j4 $@
  15. cd ..