Skip to content

Commit

Permalink
this is a horrible PR
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaeckel committed Jun 13, 2017
1 parent 1ee2662 commit ba94b53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions scan_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit ba94b53

Please sign in to comment.