]> git.ozlabs.org Git - ccan/blobdiff - tools/gcov.c
base64: fix for unsigned chars (e.g. ARM).
[ccan] / tools / gcov.c
index c36f69b09da87500ed9654b82234a33544f39bf4..bf2b61ccfdeb66a14c73f575bcbb2499159eb427 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
        }
@@ -25,6 +27,7 @@ bool run_gcov(const void *ctx, unsigned int *time_ms, char **output,
        args = tal_vfmt(ctx, fmt, ap);
        rc = run_command(ctx, time_ms, output, "%s %s", cmd, args);
        tal_free(args);
+       va_end(ap);
        return rc;
 }