mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
make: Clean up profiling options
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
8cb94ae82d
commit
5882227628
4 changed files with 8 additions and 20 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
14
make/defs.mk
14
make/defs.mk
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue