diff options
| author | peter <peter@pmikkelsen.com> | 2026-09-22 19:20:39 +0000 |
|---|---|---|
| committer | peter <peter@pmikkelsen.com> | 2026-09-22 19:20:39 +0000 |
| commit | 1e88f84ab887be0330585fdb7b8eeb22280cc9d6 (patch) | |
| tree | dd0b7a9855532881dcb7b526e9fe5874770c8c4c /tools/check | |
| parent | 83bdc0e59232434fc30f94e2fc3a22e81989e4dd (diff) | |
| parent | 949896e24ef16d703ee07fb3e489f2a986050d5b (diff) | |
Switch to using autoconf/automake instead of cmake
FossilOrigin-Name: a2ebdf11ce7ef258d626a19c68be57e4facb6cfdf4653584eb32c70eca90b6ae
Diffstat (limited to 'tools/check')
| -rwxr-xr-x | tools/check | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/tools/check b/tools/check index 717746d..eee6490 100755 --- a/tools/check +++ b/tools/check @@ -2,7 +2,7 @@ set -e -types="Debug Release Coverage" +types="debug release coverage" mkdir -p build cd build @@ -10,7 +10,27 @@ cd build for type in $types do rm -rf $type - cmake .. -G Ninja -B $type -DCMAKE_BUILD_TYPE=$type + mkdir -p $type + cd $type + case $type in + debug) + CFLAGS="-O0 -g3 -fsanitize=address,undefined" + ;; + coverage) + CFLAGS="-O0 -g3 --coverage -fcondition-coverage" + ;; + release) + CFLAGS="-O3" + ;; + *) + echo "Unsupported type" + exit 1 + ;; + esac + ../../configure --enable-build-mode=$type CFLAGS="$CFLAGS -Wall -Wextra -Werror -std=c89 -pedantic" + make check + ../../configure --enable-build-mode=$type CFLAGS="$CFLAGS" + cd .. done cd .. |