Skip to content

Commit

Permalink
Fixed CBS Makefile template for profiling. (eclipse-cdt#1043)
Browse files Browse the repository at this point in the history
Fixed BUILD_MODE="linuxtools". Changed to "profile".

Added -O0 to BUILD_MODE=debug.
  • Loading branch information
ewaterlander authored Jan 20, 2025
1 parent 1abb990 commit 9e04dc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/org.eclipse.cdt.make.core/templates/simple/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e04dc5

Please sign in to comment.