Don't overwrite SDL_dynapi.h in checker-buildbot.sh.
authorRyan C. Gordon
Wed, 19 Mar 2014 16:02:25 -0400
changeset 864089bab8249c74
parent 8639 21093d07b958
child 8641 c576c104923b
Don't overwrite SDL_dynapi.h in checker-buildbot.sh.
build-scripts/checker-buildbot.sh
src/dynapi/SDL_dynapi.h
     1.1 --- a/build-scripts/checker-buildbot.sh	Wed Mar 19 15:25:27 2014 -0400
     1.2 +++ b/build-scripts/checker-buildbot.sh	Wed Mar 19 16:02:25 2014 -0400
     1.3 @@ -8,8 +8,6 @@
     1.4  # And download checker at http://clang-analyzer.llvm.org/ and unpack it in
     1.5  #  /usr/local ... update CHECKERDIR as appropriate.
     1.6  
     1.7 -# this currently expects a mercurial working copy that it can modify a little.
     1.8 -
     1.9  FINALDIR="$1"
    1.10  
    1.11  CHECKERDIR="/usr/local/checker-276"
    1.12 @@ -53,10 +51,6 @@
    1.13  cd `dirname "$0"`
    1.14  cd ..
    1.15  
    1.16 -# Turn off the dynamic API. Makes the analysis output clearer.
    1.17 -echo '#pragma once' >src/dynapi/SDL_dynapi.h
    1.18 -echo '#define SDL_DYNAMIC_API 0' >>src/dynapi/SDL_dynapi.h
    1.19 -
    1.20  rm -rf checker-buildbot analysis
    1.21  if [ ! -z "$FINALDIR" ]; then
    1.22      rm -rf "$FINALDIR"
    1.23 @@ -84,7 +78,6 @@
    1.24  fi
    1.25  
    1.26  rm -rf checker-buildbot
    1.27 -hg revert src/dynapi/SDL_dynapi.h
    1.28  
    1.29  echo "Done. Final output is in '$FINALDIR' ..."
    1.30  
     2.1 --- a/src/dynapi/SDL_dynapi.h	Wed Mar 19 15:25:27 2014 -0400
     2.2 +++ b/src/dynapi/SDL_dynapi.h	Wed Mar 19 16:02:25 2014 -0400
     2.3 @@ -47,6 +47,8 @@
     2.4  #define SDL_DYNAMIC_API 0
     2.5  #elif SDL_BUILDING_WINRT /* probaly not useful on WinRT, given current .dll loading restrictions */
     2.6  #define SDL_DYNAMIC_API 0
     2.7 +#elif defined(__clang_analyzer__)
     2.8 +#define SDL_DYNAMIC_API 0  /* Turn off for static analysis, so reports are more clear. */
     2.9  #else   /* everyone else. */
    2.10  #define SDL_DYNAMIC_API 1
    2.11  #endif