From 9e04dc537b9cbdee64d9d2ddde2d2219db89f3f4 Mon Sep 17 00:00:00 2001 From: ewaterlander <102143930+ewaterlander@users.noreply.github.com> Date: Mon, 20 Jan 2025 17:45:27 +0100 Subject: [PATCH] Fixed CBS Makefile template for profiling. (#1043) Fixed BUILD_MODE="linuxtools". Changed to "profile". Added -O0 to BUILD_MODE=debug. --- build/org.eclipse.cdt.make.core/templates/simple/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/org.eclipse.cdt.make.core/templates/simple/Makefile b/build/org.eclipse.cdt.make.core/templates/simple/Makefile index a46f5dd2cea..8f7fd1801bd 100644 --- a/build/org.eclipse.cdt.make.core/templates/simple/Makefile +++ b/build/org.eclipse.cdt.make.core/templates/simple/Makefile @@ -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