diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-03 14:31:49 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-03 14:31:49 +0100 |
commit | f30eba63cb3f5e3aa5d81d6b31d1ba2fdee1e5c4 (patch) | |
tree | eed743b51b4875310918c708b8e24b1ecdef8c1b /common.mk | |
parent | a93412feba23335174a9a55b320e74c769462072 (diff) |
Add test coverage info
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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)\" |