make: Clean up profiling options

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-12-17 14:48:21 +00:00
commit 5882227628
4 changed files with 8 additions and 20 deletions

View file

@ -270,7 +270,6 @@ PKG_CONFIGDIRMODE ?= $(CFGDIRMODE)
#USE_MCHECK ?= true # not thread-safe #USE_MCHECK ?= true # not thread-safe
#USE_MEMWATCH ?= true #USE_MEMWATCH ?= true
#USE_MPATROL ?= true #USE_MPATROL ?= true
#USE_PROFILER ?= true
#USE_TRACING ?= true #USE_TRACING ?= true
#USE_TIMER ?= true #USE_TIMER ?= true
LOG_THREAD_NAMES ?= true LOG_THREAD_NAMES ?= true

View file

@ -270,7 +270,6 @@ PKG_CONFIGDIRMODE ?= $(CFGDIRMODE)
#USE_MCHECK ?= true #USE_MCHECK ?= true
#USE_MEMWATCH ?= true #USE_MEMWATCH ?= true
#USE_MPATROL ?= true #USE_MPATROL ?= true
#USE_PROFILER ?= true
#USE_TRACING ?= true #USE_TRACING ?= true
#USE_TIMER ?= true #USE_TIMER ?= true
LOG_THREAD_NAMES ?= true LOG_THREAD_NAMES ?= true

View file

@ -816,18 +816,6 @@ ifeq ($(USE_FAST_LOG),false)
BUILD_CPPFLAGS +=-D_USE_FAST_LOG_=0 BUILD_CPPFLAGS +=-D_USE_FAST_LOG_=0
endif endif
ifeq ($(USE_GCOV),true)
BUILD_CFLAGS += --coverage
BUILD_CPPFLAGS += --coverage
BUILD_LDFLAGS += --coverage
endif
ifeq ($(USE_PROFILER),true)
BUILD_CFLAGS += -pg
BUILD_CPPFLAGS += -pg
BUILD_LDFLAGS += -pg
endif
ifeq ($(USE_YAMD),true) ifeq ($(USE_YAMD),true)
CC = yamd-gcc CC = yamd-gcc
endif endif
@ -935,7 +923,7 @@ ifeq ($(CC),$(GCC))
-fno-inline-functions-called-once \ -fno-inline-functions-called-once \
-fno-tree-loop-optimize \ -fno-tree-loop-optimize \
-fno-early-inlining \ -fno-early-inlining \
-no-default-inline -fno-default-inline
else else
ifeq ($(CC),$(CLANG)) ifeq ($(CC),$(CLANG))
BUILD_CFLAGS += -Werror BUILD_CFLAGS += -Werror

View file

@ -12,11 +12,13 @@ ifeq ($(USE_GPROF),true)
clean: clean.gprof clean: clean.gprof
endif endif
ifeq ($(USE_GCOV),true) ifeq ($(COMPILER_SUITE),gcc)
PROJECT_CPPFLAGS += -fprofile-arcs -ftest-coverage ifeq ($(USE_GCOV),true)
PROJECT_CFLAGS += -fprofile-arcs -ftest-coverage PROJECT_CPPFLAGS += -fprofile-arcs -ftest-coverage
PROJECT_LDFLAGS += -fprofile-arcs -ftest-coverage PROJECT_CFLAGS += -fprofile-arcs -ftest-coverage
clean: clean.gcov PROJECT_LDFLAGS += -fprofile-arcs -ftest-coverage
clean: clean.gcov
endif
endif endif
ifeq ($(COMPILER_SUITE),clang) ifeq ($(COMPILER_SUITE),clang)