this is a horrible PR

This commit is contained in:
Steffen Jaeckel 2017-06-13 18:03:15 +02:00
parent 1ee2662ab5
commit ba94b536be
2 changed files with 7 additions and 4 deletions

View File

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

View File

@ -13,5 +13,7 @@ make clean > /dev/null
scan_build=$(which scan-build)
[ -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"