#!/usr/bin/env sh
set -eu

cd "$(dirname "$0")"

if [ -f local-tools/env.sh ]; then
  . ./local-tools/env.sh
fi

if [ ! -d build ]; then
  meson setup build --buildtype=release
fi

meson compile -C build generate-cases
meson compile -C build build-engines

cat <<'EOF'

Build finished.

Run tests explicitly with one of:
  ./run-performance.sh --repeats=5 --warmups=1
  ./run-correctness.sh

EOF
