From 35c7aac3c61190a4d63a7f0bbbe45e4dd09ba4af Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 9 Dec 2019 11:53:54 +0100 Subject: [PATCH] cirrus: enable clang sanitizers on freebsd 13 --- .cirrus.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index dc7e2299a..df9106d47 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -21,6 +21,13 @@ task: - pkg delete -y curl configure_script: - ./buildconf + - case `uname -r` in + 13.0*) + export CC=clang; + export CFLAGS="-fsanitize=address,undefined,signed-integer-overflow -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g" + export CXXFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g" + export LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer" ;; + esac - ./configure --prefix="${HOME}"/install --enable-debug --with-libssh2 --with-brotli --with-gssapi --with-libidn2 --enable-manual --enable-ldap --enable-ldaps --with-librtmp --with-libmetalink --with-libpsl --with-nghttp2 || { tail -300 config.log; false; } compile_script: - make V=1