From 16f12bcfa5b0ff4c727104110bf1e6275655ad4a Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Wed, 24 Aug 2016 21:21:54 +0200 Subject: [PATCH] build.sh: small improvement Fix undefined variable in cpp check Print current job on clang-tidy (ease replay of a single file) Keep jobs order, ease diff between multiple run --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 9d9dfcefec..c387087181 100755 --- a/build.sh +++ b/build.sh @@ -175,6 +175,7 @@ if [ "$cppcheck" -eq 1 ] && command -v cppcheck >/dev/null ; then rm -f $summary touch $summary + define="" for undef in _WINDOWS _M_AMD64 _MSC_VER WIN32 __INTEL_COMPILER __x86_64__ \ __SSE4_1__ __SSSE3__ __SSE__ __AVX2__ __USE_ISOC11 ASAN_WORKAROUND ENABLE_OPENCL ENABLE_OGL_DEBUG do @@ -224,7 +225,7 @@ if [ "$clangTidy" -eq 1 ] && command -v clang-tidy >/dev/null ; then # Don't check headers, don't check google/llvm coding conventions if command -v parallel >/dev/null ; then # Run clang-tidy in parallel with as many jobs as there are CPUs. - parallel "clang-tidy -p $compile_json -checks='*,-llvm-*,-google-*' {}" + parallel -v --keep-order "clang-tidy -p $compile_json -checks='*,-llvm-*,-google-*' {}" else # xargs(1) can also run jobs in parallel with -P, but will mix the # output from the distinct processes together willy-nilly.