test-all-flags.sh 237 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. run_tests() {
  4. echo "Building with flags $1"
  5. cmake $1 -B build
  6. cmake --build build
  7. ./build/Debug/HelloWorld
  8. }
  9. run_tests ""
  10. run_tests "-DDOUBLE_PRECISION=ON"
  11. run_tests "-DOBJECT_LAYER_BITS=32"