mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 06:22:22 +00:00
Use scan-build when invoking clang
This commit is contained in:
parent
67e24c8fc0
commit
e130c1fbf9
1 changed files with 6 additions and 2 deletions
|
@ -41,9 +41,13 @@ if [ -n "${CPPCHECK}" ]; then
|
|||
cppcheck --enable=all --max-configs=1 --xml --xml-version=2 code 2> ${CPPCHECK}
|
||||
fi
|
||||
|
||||
ln -s ${CPPCHECK} cppcheck.xml
|
||||
ln -sf ${CPPCHECK} cppcheck.xml
|
||||
fi
|
||||
|
||||
make -j${CORES} distclean ${BUILD_TYPE}
|
||||
if [ "${CC}" == "clang" ]; then
|
||||
MAKE_PREFIX="scan-build"
|
||||
fi
|
||||
|
||||
${MAKE_PREFIX} make -j${CORES} distclean ${BUILD_TYPE}
|
||||
|
||||
exit $?
|
||||
|
|
Loading…
Reference in a new issue