From 2958777472f00d9eab63589c3c26c9e86881edb4 Mon Sep 17 00:00:00 2001 From: Dmitry Mikhirev Date: Mon, 18 May 2015 00:21:37 +0300 Subject: travis: use -O0 when building with clang Workaround valgring memcheck false positive. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2e6c260..ce019f6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ before_install: - wget http://ftp.gnu.org/gnu/make/make-${MAKE_VER}.tar.bz2 -O - | bunzip2 | tar -xvC /tmp install: - sudo apt-get install -yq libpcre3-dev valgrind - - pushd /tmp/make-${MAKE_VER} && ./configure && make -j2 && sudo make install ; popd + - pushd /tmp/make-${MAKE_VER} && `test "$CC" = clang && echo "CFLAGS='-g -O0'"` ./configure && make -j2 && sudo make install ; popd - sudo pip install cpp-coveralls script: if test "$CC" = gcc; then /usr/local/bin/make check 'CFLAGS=-Wall -g -fprofile-arcs -ftest-coverage' 'GNUMAKE4=valgrind -q --error-exitcode=125 /usr/local/bin/make'; else /usr/local/bin/make check 'GNUMAKE4=valgrind -q --error-exitcode=125 /usr/local/bin/make'; fi after_success: -- cgit v1.2.1