From f7bf1a1f05648e6292baded4828b46bea0f59075 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 12 Jan 2014 18:44:40 +0100 Subject: [PATCH] t/cibuild.sh, .travis.yml: Do an AddressSanitizer run as well. Passing additional build flags as CICFLAGS and CILDFLAGS. --- .travis.yml | 1 + t/cibuild.sh | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d3bfbe9..3d4f12e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: c env: - CIOPTIONS="--with-readline=libedit" - CIOPTIONS="--with-readline=libreadline" + - CICFLAGS="-fsanitize=address -fno-omit-frame-pointer" CILDFLAGS="-fsanitize=address" compiler: - clang - gcc diff --git a/t/cibuild.sh b/t/cibuild.sh index e0754db..120d427 100755 --- a/t/cibuild.sh +++ b/t/cibuild.sh @@ -7,6 +7,8 @@ set -ex ./autogen.sh -./configure --enable-gcov $CIOPTIONS CFLAGS="-O0 -Wno-sign-conversion" +./configure --enable-gcov $CIOPTIONS \ + CFLAGS="-O0 -Wno-sign-conversion $CICFLAGS" \ + LDFLAGS="$CILDFLAGS" make clean all make test -- 2.30.2