From a72cd70af957a06ae870d93314b4ed0f3625f6ee Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 1 Jan 2023 21:16:19 +0100 Subject: Adjust to Debian 11 build --- tests/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/Makefile') diff --git a/tests/Makefile b/tests/Makefile index 94789f9..4ade005 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -2,7 +2,7 @@ CXXFLAGS=-g -O0 include ../common.mk -ifeq ($(CXX),clang++-14) +ifeq ($(CXXTYPE),clang++) CXXFLAGS+=-fprofile-instr-generate -fcoverage-mapping LDFLAGS+=-fprofile-instr-generate -fcoverage-mapping else @@ -25,10 +25,10 @@ CXXFLAGS+=\ test: unittests # https://clang.llvm.org/docs/SourceBasedCodeCoverage.html -ifeq ($(CXX),clang++-14) +ifeq ($(CXXTYPE),clang++) LLVM_PROFILE_FILE="unittests.profraw" ./unittests - llvm-profdata-14 merge -sparse unittests.profraw -o unittests.profdata - llvm-cov-14 report --ignore-filename-regex='google' --ignore-filename-regex='test-' --show-region-summary=0 -instr-profile unittests.profdata unittests + $(LLVMPROFDATA) merge -sparse unittests.profraw -o unittests.profdata + $(LLVMCOV) report --ignore-filename-regex='google' --ignore-filename-regex='test-' --show-region-summary=0 -instr-profile unittests.profdata unittests else ./unittests #gcov-12 storage.o @@ -36,7 +36,7 @@ else endif coverage: - llvm-cov-14 show -instr-profile unittests.profdata $(UNITS:.cpp=.o) + $(LLVMCOV) show -instr-profile unittests.profdata $(UNITS:.cpp=.o) unittests: libgmock.a $(UNITTESTS:.cpp=.o) $(UNITS:.cpp=.o) $(CXX) $(LDFLAGS) $^ $(LDLIBS) $(LIBS) -o $@ -- cgit v1.2.3