ccanlint: Correct default coverage tool for clang
[ccan] / tools / gcov.c
index c36f69b09da87500ed9654b82234a33544f39bf4..79528c1b9e855b705b3986fc2c683791a624db28 100644 (file)
@@ -13,7 +13,9 @@ bool run_gcov(const void *ctx, unsigned int *time_ms, char **output,
        bool rc;
 
        if (!gcov) {
-#ifdef __GNUC__
+#if defined(__clang__)
+               cmd = "llvm-cov gcov";
+#elif defined(__GNUC__)
                cmd = "gcov";
 #endif
        }