build.sh: use clang when clang-tidy is enabled

avoid tons of warning that options XXX isn't supported
This commit is contained in:
Gregory Hainaut 2016-08-20 19:01:14 +02:00
parent a02937a67b
commit 2ae133e993

View File

@ -56,7 +56,7 @@ fi
for ARG in "$@"; do
case "$ARG" in
--clean ) cleanBuild=1 ;;
--clang-tidy ) flags="$flags -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"; clangTidy=1 ;;
--clang-tidy ) flags="$flags -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"; clangTidy=1 ; useClang=1;;
--clang ) useClang=1 ;;
--intel ) useIcc=1 ;;
--cppcheck ) cppcheck=1 ;;