From cab2b5a1815dd6d84ee4a2563be540fc044b38a0 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 27 May 2017 05:16:09 -0400 Subject: [PATCH] Reduce optimizations for code coverage recipes --- GNUmakefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 01342db4..a69319e4 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -406,6 +406,9 @@ endif # Gold # lcov code coverage. Issue 'make coverage'. ifneq ($(filter coverage,$(MAKECMDGOALS)),) +CXXFLAGS := $(CXXFLAGS:-g%=-g3) +CXXFLAGS := $(CXXFLAGS:-O%=-O1) +CXXFLAGS := $(CXXFLAGS:-xO%=-xO1) ifeq ($(findstring -DCRYPTOPP_COVERAGE,$(CXXFLAGS)),) CXXFLAGS += -DCRYPTOPP_COVERAGE endif # CRYPTOPP_COVERAGE @@ -416,6 +419,9 @@ endif # GCC code coverage # gcov code coverage for Travis. Issue 'make codecov'. ifneq ($(filter codecov,$(MAKECMDGOALS)),) +CXXFLAGS := $(CXXFLAGS:-g%=-g3) +CXXFLAGS := $(CXXFLAGS:-O%=-O1) +CXXFLAGS := $(CXXFLAGS:-xO%=-xO1) ifeq ($(findstring -DCRYPTOPP_COVERAGE,$(CXXFLAGS)),) CXXFLAGS += -DCRYPTOPP_COVERAGE endif # CRYPTOPP_COVERAGE