From f30eba63cb3f5e3aa5d81d6b31d1ba2fdee1e5c4 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Tue, 3 Jan 2023 14:31:49 +0100 Subject: Add test coverage info --- common.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'common.mk') diff --git a/common.mk b/common.mk index badfc9d..9f1d074 100644 --- a/common.mk +++ b/common.mk @@ -73,17 +73,30 @@ LIBS+= \ #-lc++abi #-lc++fs #-lstdc++fs +LLVMPROFDATA=llvm-profdata-11 +LLVMCOV=llvm-cov-11 +CXXTYPE=clang++ else ifeq ($(CXX),clang++-14) LIBS+= \ -fuse-ld=lld-14 \ -lstdc++ +LLVMPROFDATA=llvm-profdata-14 +LLVMCOV=llvm-cov-14 +CXXTYPE=clang++ else ifeq ($(CXX),clang++-13) LIBS+= \ -fuse-ld=lld-13 \ -lstdc++ +LLVMPROFDATA=llvm-profdata-13 +LLVMCOV=llvm-cov-13 +CXXTYPE=clang++ else LIBS+= \ -lstdc++ \ -lstdc++fs +CXXTYPE=g++ endif +SRC_ROOT=$(shell echo $(MAKEFILE_LIST) | tr " " "\n" | grep common.mk | sed -e 's/\([^ ]*\)common.mk/\1/g') +VERSION=$(shell dpkg-parsechangelog --show-field Version --file $(SRC_ROOT)/debian/changelog) +CXXFLAGS+=-DVERSION=\"$(VERSION)\" -- cgit v1.2.3