diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-10-23 06:53:22 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-11-03 20:24:28 -0500 |
commit | 445e66f775c828fa10960142f9a9013e8cdc1110 (patch) | |
tree | 095f82dfe553179286dc56998d31137dec79b58e /solenv | |
parent | 7378043546f1a4b3dc89cdce648bc4c4ef067525 (diff) |
gbuild: add beginning of gcov support
Change-Id: If5b551c46de4afae2393a6320d08c191feafc358
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index 9bb9cf7410c2..2fa302360aba 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -85,6 +85,14 @@ ifneq ($(HAVE_THREADSAFE_STATICS),TRUE) gb_CXXFLAGS_COMMON += -fno-threadsafe-statics endif +ifeq ($(strip $(gb_GCOV)),YES) +gb_CFLAGS_COMMON += -fprofile-arcs -ftest-coverage +gb_CXXFLAGS_COMMON += -fprofile-arcs -ftest-coverage +gb_LinkTarget_LDFLAGS += -fprofile-arcs -lgcov +gb_COMPILERDEFAULTOPTFLAGS := -O0 +endif + + ifeq ($(HAVE_GCC_VISIBILITY_FEATURE),TRUE) gb_VISIBILITY_FLAGS := -DHAVE_GCC_VISIBILITY_FEATURE -fvisibility=hidden ifneq ($(HAVE_GCC_VISIBILITY_BROKEN),TRUE) |