mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Fixed CBS Makefile template for profiling. (#1043)
Fixed BUILD_MODE="linuxtools". Changed to "profile". Added -O0 to BUILD_MODE=debug.
This commit is contained in:
parent
1abb9900db
commit
9e04dc537b
1 changed files with 2 additions and 2 deletions
|
@ -3,10 +3,10 @@ PROJECT_ROOT = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
|||
OBJS = ${projectName}.o
|
||||
|
||||
ifeq ($(BUILD_MODE),debug)
|
||||
CFLAGS += -g
|
||||
CFLAGS += -g -O0
|
||||
else ifeq ($(BUILD_MODE),run)
|
||||
CFLAGS += -O2
|
||||
else ifeq ($(BUILD_MODE),linuxtools)
|
||||
else ifeq ($(BUILD_MODE),profile)
|
||||
CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
|
||||
LDFLAGS += -pg -fprofile-arcs -ftest-coverage
|
||||
EXTRA_CLEAN += ${projectName}.gcda ${projectName}.gcno $(PROJECT_ROOT)gmon.out
|
||||
|
|
Loading…
Add table
Reference in a new issue