Parcourir la source

this is a horrible PR

Steffen Jaeckel il y a 8 ans
Parent
commit
ba94b536be
2 fichiers modifiés avec 7 ajouts et 4 suppressions
  1. 3 2
      .travis.yml
  2. 4 2
      scan_build.sh

+ 3 - 2
.travis.yml

@@ -6,9 +6,10 @@ language: c
 addons:
 addons:
   apt:
   apt:
     sources:
     sources:
-    - llvm-toolchain-trusty-4.0
+    - ubuntu-toolchain-r-test
+    - llvm-toolchain-precise-3.8
     packages:
     packages:
-    - clang-4.0
+    - clang-3.8
 
 
 before_script:
 before_script:
   - gem install coveralls-lcov
   - gem install coveralls-lcov

+ 4 - 2
scan_build.sh

@@ -13,5 +13,7 @@ make clean > /dev/null
 
 
 scan_build=$(which scan-build)
 scan_build=$(which scan-build)
 [ -z "$scan_build" ] && scan_build=$(find /usr/bin/ -name 'scan-build-*' | sort -nr | head -n1) || true
 [ -z "$scan_build" ] && scan_build=$(find /usr/bin/ -name 'scan-build-*' | sort -nr | head -n1) || true
-[ -z "$scan_build" ] && { echo "couldn't find clang scan-build"; exit 1; } || true
-CFLAGS="" EXTRALIBS="" $scan_build make -f makefile.unix all CFLAGS="" EXTRALIBS=""
+[ -z "$scan_build" ] && { echo "couldn't find clang scan-build"; exit 1; } || echo "run $scan_build"
+export CFLAGS="-DUSE_LTM -DLTM_DESC -I/usr/include"
+export EXTRALIBS="-ltommath"
+$scan_build make -f makefile.unix all CFLAGS="$CFLAGS" EXTRALIBS="$EXTRALIBS"