diff options
| author | peter <peter@pmikkelsen.com> | 2026-09-22 19:23:46 +0000 |
|---|---|---|
| committer | peter <peter@pmikkelsen.com> | 2026-09-22 19:23:46 +0000 |
| commit | ec058e1f6acc1f6f98ebb31a350531f387441781 (patch) | |
| tree | 8b95b4eb67d108dc17312ecdd635e8a7dad29880 /tools/check | |
| parent | 0b6ea0024a5a51db015797e952d55bfac49b4b6d (diff) | |
| parent | 1e88f84ab887be0330585fdb7b8eeb22280cc9d6 (diff) | |
Update branch to get the latest autotools stuff
FossilOrigin-Name: a39b9d0fe118ac1f3202f7b730f504056fdba8f0ab5fe79961e0861367fc60bb
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 .. |