From: Ivan Maidanski Date: Fri, 24 Mar 2017 16:02:18 +0000 (+0300) Subject: Travis CI: Move optional -D arguments of CSA to CFLAGS_EXTRA X-Git-Tag: v7.6.0~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d6abdff7d6e0b72b72c6ef99e74e43bfea2280d;p=libatomic_ops Travis CI: Move optional -D arguments of CSA to CFLAGS_EXTRA (refactoring of commit 4393a96) --- diff --git a/.travis.yml b/.travis.yml index 23ad032..00e5793 100644 --- a/.travis.yml +++ b/.travis.yml @@ -129,7 +129,7 @@ matrix: sources: [ llvm-toolchain-trusty-4.0 ] compiler: clang-4.0 dist: trusty - env: [ CSA_CHECK=true ] + env: [ CSA_CHECK=true, CFLAGS_EXTRA="-D AO_TRACE_MALLOC -D VERBOSE" ] - os: linux addons: { apt: { packages: [ musl-tools ] } } compiler: musl-gcc @@ -233,7 +233,7 @@ script: - if [ -f tests/test_atomic.log ]; then cat tests/test_atomic*.log; fi - if [[ "$CSA_CHECK" == true ]]; then ${CC} --analyze -Xanalyzer -analyzer-output=text -Werror -I src - -D AO_TRACE_MALLOC -D VERBOSE tests/*.c src/*.c; + $CFLAGS_EXTRA tests/*.c src/*.c; fi - if [[ "$CPPCHECK" == true ]]; then ~/cppcheck/cppcheck -f -q --error-exitcode=2 -j16 -U long -D CPPCHECK