build-scripts/checker-buildbot.sh
changeset 10652 c3fbfa229d71
parent 10649 ddd8049e9d39
child 11170 b5fe34e8401f
     1.1 --- a/build-scripts/checker-buildbot.sh	Fri Nov 25 00:13:13 2016 -0500
     1.2 +++ b/build-scripts/checker-buildbot.sh	Fri Nov 25 14:16:27 2016 -0500
     1.3 @@ -46,6 +46,10 @@
     1.4  
     1.5  echo "\$MAKE is '$MAKE'"
     1.6  
     1.7 +# Unset $MAKE so submakes don't use it.
     1.8 +MAKECOMMAND="$MAKE"
     1.9 +unset MAKE
    1.10 +
    1.11  set -x
    1.12  set -e
    1.13  
    1.14 @@ -60,17 +64,17 @@
    1.15  mkdir checker-buildbot
    1.16  cd checker-buildbot
    1.17  
    1.18 +# We turn off deprecated declarations, because we don't care about these warnings during static analysis.
    1.19 +# The -Wno-liblto is new since our checker-279 upgrade, I think; checker otherwise warns "libLTO.dylib relative to clang installed dir not found"
    1.20 +
    1.21  # You might want to do this for CMake-backed builds instead...
    1.22 -PATH="$CHECKERDIR/bin:$PATH" scan-build -o analysis cmake -DCMAKE_BUILD_TYPE=Debug -DASSERTIONS=enabled ..
    1.23 +PATH="$CHECKERDIR/bin:$PATH" scan-build -o analysis cmake -Wno-dev -DCMAKE_BUILD_TYPE=Debug -DASSERTIONS=enabled -DCMAKE_C_FLAGS="-Wno-deprecated-declarations" -DCMAKE_SHARED_LINKER_FLAGS="-Wno-liblto" ..
    1.24  
    1.25  # ...or run configure without the scan-build wrapper...
    1.26 -#CC="$CHECKERDIR/libexec/ccc-analyzer" CFLAGS="-O0" ../configure --enable-assertions=enabled
    1.27 -
    1.28 -# ...but this works for our buildbots just fine (EXCEPT ON LATEST MAC OS X).
    1.29 -#CFLAGS="-O0" PATH="$CHECKERDIR/bin:$PATH" scan-build -o analysis ../configure --enable-assertions=enabled
    1.30 +#CC="$CHECKERDIR/libexec/ccc-analyzer" CFLAGS="-O0 -Wno-deprecated-declarations" LDFLAGS="-Wno-liblto" ../configure --enable-assertions=enabled
    1.31  
    1.32  rm -rf analysis
    1.33 -PATH="$CHECKERDIR/bin:$PATH" scan-build -o analysis $MAKE
    1.34 +PATH="$CHECKERDIR/bin:$PATH" scan-build -o analysis $MAKECOMMAND
    1.35  
    1.36  if [ `ls -A analysis |wc -l` == 0 ] ; then
    1.37      mkdir analysis/zarro