Update build scripts, add valgrind support.

This commit is contained in:
2023-10-21 20:19:03 -07:00
parent 19fa0c147d
commit c1629dda81
7 changed files with 41 additions and 10 deletions

View File

@@ -10,6 +10,8 @@
set -eux
BUILD_TYPE="${BUILD_TYPE:-Debug}"
if [ "${USE_CLANG:-}" == "yes" ]
then
export CC=$(command -v clang)
@@ -17,4 +19,4 @@ then
fi
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .. && make all test && ctest
cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} .. && make all test