build.sh 289 B

1234567891011
  1. #!/bin/bash -e
  2. cmake -B build \
  3. -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Debug} \
  4. -DENABLE_LTO=FALSE \
  5. -DRUN_IN_PLACE=TRUE \
  6. -DENABLE_GETTEXT=${CMAKE_ENABLE_GETTEXT:-TRUE} \
  7. -DBUILD_SERVER=${CMAKE_BUILD_SERVER:-TRUE} \
  8. ${CMAKE_FLAGS}
  9. cmake --build build --parallel $(($(nproc) + 1))