[Libreoffice-commits] dev-tools.git: clang/Makefile

Miklos Vajna vmiklos at collabora.co.uk
Wed Jan 27 11:34:01 PST 2016


 clang/Makefile |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 8fa6f865aabd20ac695d83e3c3b863679f789fff
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Wed Jan 27 20:33:21 2016 +0100

    clang: use coverage options when GCOV is defined

diff --git a/clang/Makefile b/clang/Makefile
index 1aa8d51..527e480 100644
--- a/clang/Makefile
+++ b/clang/Makefile
@@ -2,6 +2,9 @@ CLANGDEFS=-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
 CLANGWARNS=-Werror -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunused-macros -Wshadow -Woverloaded-virtual
 CLANGFLAGS = $(CLANGDEFS) $(CLANGWARNS) -g -std=c++11
 CLANGLIBS = -lLLVMSupport -lclangAST -lclangBasic -lclangFrontend -lclangRewrite -lclangTooling
+ifneq (GCOV,)
+CLANGFLAGS += --coverage
+endif
 
 all: bin/rename bin/find-unprefixed-members
 


More information about the Libreoffice-commits mailing list