summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStefan Bühler <source@stbuehler.de>2022-01-06 16:28:40 +0100
committerGlenn Strauss <gstrauss@gluelogic.com>2022-01-06 19:30:56 -0500
commitf6d6295ab49141a41e9726ed58e3224b2ed2368a (patch)
tree233f82887f528bc4f4617f440491faeae3b25371 /scripts
parentae2fb9749498e3490d50d2fdd056fa06700529fb (diff)
downloadlighttpd-git-f6d6295ab49141a41e9726ed58e3224b2ed2368a.tar.gz
[ci] add cmake-asan build type
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci-build.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/ci-build.sh b/scripts/ci-build.sh
index 7e9bd948..88b1fac7 100755
--- a/scripts/ci-build.sh
+++ b/scripts/ci-build.sh
@@ -49,11 +49,17 @@ case "${build}" in
make -j 2
make check
;;
-"cmake")
+"cmake"|"cmake-asan")
mkdir cmakebuild
cd cmakebuild
+ if [ "${build}" = "cmake-asan" ]; then
+ asan_opts="-DBUILD_SANITIZE_ADDRESS=ON -DBUILD_SANITIZE_UNDEFINED=ON"
+ else
+ asan_opts=""
+ fi
cmake \
-DBUILD_EXTRA_WARNINGS=ON \
+ ${asan_opts} \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DWITH_PCRE2=ON \
-DWITH_ZSTD=ON \