From 58eeeff9a8d06641d31d69a41976212825daeee4 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Fri, 28 Aug 2020 12:12:23 -0500 Subject: [PATCH] trivial: only run scan-build if compiler is clang --- contrib/ci/ubuntu.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/ci/ubuntu.sh b/contrib/ci/ubuntu.sh index 3de520790..38ac943b5 100755 --- a/contrib/ci/ubuntu.sh +++ b/contrib/ci/ubuntu.sh @@ -25,4 +25,6 @@ mkdir -p dist/docs cp build/docs/* dist/docs -R #run static analysis (these mostly won't be critical) -ninja -C build scan-build -v +if [ "$CC" = "clang" ]; then + ninja -C build scan-build -v +fi