]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Clean up profiling_clang test suite probing
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 25 May 2020 19:25:41 +0000 (21:25 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 25 May 2020 19:25:41 +0000 (21:25 +0200)
test/suites/profiling_clang.bash

index c6bb7ef7623553cd8bb92019306fc233255136e3..039a5d943b0163c20cbe95b9352a30bf1aa08092 100644 (file)
@@ -1,8 +1,7 @@
 SUITE_profiling_clang_PROBE() {
     if ! $COMPILER_TYPE_CLANG; then
         echo "compiler is not Clang"
-    fi
-    if ! which llvm-profdata$CLANG_VERSION_SUFFIX >/dev/null 2>/dev/null; then
+    elif ! which llvm-profdata$CLANG_VERSION_SUFFIX >/dev/null 2>/dev/null; then
         echo "llvm-profdata$CLANG_VERSION_SUFFIX tool not found"
     fi
 }