mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 13:40:56 +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}
|
cppcheck --enable=all --max-configs=1 --xml --xml-version=2 code 2> ${CPPCHECK}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -s ${CPPCHECK} cppcheck.xml
|
ln -sf ${CPPCHECK} cppcheck.xml
|
||||||
fi
|
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 $?
|
exit $?
|
||||||
|
|
Loading…
Reference in a new issue