Code

t/cibuild.sh, .travis.yml: Do an AddressSanitizer run as well.
authorSebastian Harl <sh@tokkee.org>
Sun, 12 Jan 2014 17:44:40 +0000 (18:44 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 12 Jan 2014 17:44:40 +0000 (18:44 +0100)
Passing additional build flags as CICFLAGS and CILDFLAGS.

.travis.yml
t/cibuild.sh

index d3bfbe9..3d4f12e 100644 (file)
@@ -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
index e0754db..120d427 100755 (executable)
@@ -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