summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-05-27 05:16:09 -0400
committerJeffrey Walton <noloader@gmail.com>2017-05-27 05:16:09 -0400
commitcab2b5a1815dd6d84ee4a2563be540fc044b38a0 (patch)
tree8753e7d93b77a782d1070f9639b1f9143d6d52ca /GNUmakefile
parentb5240463f1c39786c8b1c62989efc65662751f32 (diff)
downloadcryptopp-git-cab2b5a1815dd6d84ee4a2563be540fc044b38a0.tar.gz
Reduce optimizations for code coverage recipes
Diffstat (limited to 'GNUmakefile')
-rwxr-xr-xGNUmakefile6
1 files changed, 6 insertions, 0 deletions
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