build.sh 226 B

1234567891011121314
  1. #!/bin/sh -ex
  2. export CC="$_CC"
  3. export CXX="$_CXX"
  4. if [ -n "$SANITIZE" ]; then
  5. export CXXFLAGS="-fsanitize=$SANITIZE"
  6. BUILD_TYPE="Debug"
  7. else
  8. BUILD_TYPE="Release"
  9. fi
  10. cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE .
  11. cmake --build .