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 d3bfbe959e61494ada6cb5ff156e2c64065ac54a..3d4f12e8ee1e2766d7b9b6bdf4a8eba314a78b09 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 e0754dbc2e2e982881ce4e27fc7423198406a8f4..120d4278b9e7f404d1175cab90626a30d547650d 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