We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de8d5f5 commit 85b27f6Copy full SHA for 85b27f6
1 file changed
build-support/run_clang_tidy.sh
@@ -31,4 +31,10 @@ for FILE in $FILES; do
31
done
32
# run-clang-tidy from older version of LLVM requires python but not python3 as the env, so we cannot run it directly
33
SCRIPT=$(which run-clang-tidy)
34
-python3 $SCRIPT -p build -j $(nproc) $(cat files.txt)
+set +e
35
+nproc
36
+if [[ $? == 0 ]]; then
37
+ python3 $SCRIPT -p build -j$(nproc) $(cat files.txt)
38
+else
39
+ python3 $SCRIPT -p build -j8 $(cat files.txt)
40
+fi
0 commit comments