Travis CI: fix 'bits/predefs.h not found' in CSA_CHECK build
authorIvan Maidanski <ivmai@mail.ru>
Tue, 14 Feb 2017 18:42:02 +0000 (21:42 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 14 Feb 2017 18:55:08 +0000 (21:55 +0300)
(fix commit 3663fd5)

.travis.yml

index 96ec35f..ccf3030 100644 (file)
@@ -20,6 +20,7 @@ env:
       CONF_THREADS=--disable-threads
       CFLAGS_EXTRA="-O3 -march=native"
   - CSA_CHECK=true
+      CFLAGS_EXTRA_M=-m32
 
 matrix:
   exclude:
@@ -34,7 +35,7 @@ matrix:
   - compiler: gcc
     env: CONF_LARGE_CONFIG=--enable-large-config
   - compiler: clang
-    env: CSA_CHECK=true
+    env: CSA_CHECK=true CFLAGS_EXTRA_M=-m32
 
 sudo: required
 
@@ -69,7 +70,7 @@ script:
     fi
   - if [[ "$CSA_CHECK" == true ]]; then
       clang --analyze -Xanalyzer -analyzer-output=text
-            -m32 -Werror -I include -I libatomic_ops/src
+            $CFLAGS_EXTRA_M -Werror -I include -I libatomic_ops/src
             *.c *.cc cord/*.c cord/tests/cordtest.c cord/tests/de.c extra/gc.c
             extra/msvc_dbg.c tests/*.c tests/*.cc tools/*.c &&
       clang --analyze -Xanalyzer -analyzer-output=text