configure: Add support for clang llvm-cov
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 6 Mar 2016 21:52:04 +0000 (22:52 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 7 Mar 2016 15:59:00 +0000 (16:59 +0100)
configure

index f0c4f0a..9ffb679 100755 (executable)
--- a/configure
+++ b/configure
@@ -2778,6 +2778,10 @@ case "$toolchain" in
         add_cflags  -fprofile-arcs -ftest-coverage
         add_ldflags -fprofile-arcs -ftest-coverage
     ;;
+    llvm-cov)
+        add_cflags -fprofile-arcs -ftest-coverage
+        add_ldflags --coverage
+    ;;
     hardened)
         add_cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
         add_cflags   -fno-strict-overflow -fstack-protector-all