summaryrefslogtreecommitdiffhomepage
path: root/common.mk
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-03 14:31:49 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-03 14:31:49 +0100
commitf30eba63cb3f5e3aa5d81d6b31d1ba2fdee1e5c4 (patch)
treeeed743b51b4875310918c708b8e24b1ecdef8c1b /common.mk
parenta93412feba23335174a9a55b320e74c769462072 (diff)
Add test coverage info
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk13
1 files changed, 13 insertions, 0 deletions
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)\"