Minor comment cleanups in checker-buildbot.sh
authorRyan C. Gordon
Wed, 19 Mar 2014 22:43:30 -0400
changeset 8644f218b4e65498
parent 8643 a0500498afee
child 8645 d69fdbefeecf
Minor comment cleanups in checker-buildbot.sh
build-scripts/checker-buildbot.sh
     1.1 --- a/build-scripts/checker-buildbot.sh	Wed Mar 19 18:25:21 2014 -0400
     1.2 +++ b/build-scripts/checker-buildbot.sh	Wed Mar 19 22:43:30 2014 -0400
     1.3 @@ -4,8 +4,9 @@
     1.4  #  through Clang's static analyzer and prepare the output to be uploaded
     1.5  #  back to the buildmaster. You might find it useful too.
     1.6  
     1.7 -# To use: get CMake from http://cmake.org/ or "apt-get install cmake" or whatever.
     1.8 -# And download checker at http://clang-analyzer.llvm.org/ and unpack it in
     1.9 +# Install Clang (you already have it on Mac OS X, apt-get install clang
    1.10 +#  on Ubuntu, etc),
    1.11 +# or download checker at http://clang-analyzer.llvm.org/ and unpack it in
    1.12  #  /usr/local ... update CHECKERDIR as appropriate.
    1.13  
    1.14  FINALDIR="$1"
    1.15 @@ -58,9 +59,16 @@
    1.16  
    1.17  mkdir checker-buildbot
    1.18  cd checker-buildbot
    1.19 -#cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER="$CHECKERDIR/libexec/ccc-analyzer" -DSDL_STATIC=OFF ..
    1.20 +
    1.21 +# You might want to do this for CMake-backed builds instead...
    1.22 +#cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER="$CHECKERDIR/libexec/ccc-analyzer" ..
    1.23 +
    1.24 +# ...or run configure without the scan-build wrapper...
    1.25  #CC="$CHECKERDIR/libexec/ccc-analyzer" CFLAGS="-O0" ../configure
    1.26 +
    1.27 +# ...but this works for our buildbots just fine.
    1.28  CFLAGS="-O0" PATH="$CHECKERDIR:$PATH" scan-build -o analysis ../configure
    1.29 +
    1.30  rm -rf analysis
    1.31  PATH="$CHECKERDIR:$PATH" scan-build -o analysis $MAKE
    1.32  mv analysis/* ../analysis