From 3cc8fa07f5fcc55e14e0be8e227642c62c8c3ccd Mon Sep 17 00:00:00 2001 From: arighi Date: Mon, 10 May 2010 14:42:53 +0000 Subject: [PATCH] wizard: add -fomit-frame-pointer when we are not in debug mode. This closes #128. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3643 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/mktemplates/template.mk | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/wizard/mktemplates/template.mk b/wizard/mktemplates/template.mk index ef9d934d..1a219774 100644 --- a/wizard/mktemplates/template.mk +++ b/wizard/mktemplates/template.mk @@ -42,13 +42,23 @@ $pname_WIZARD_ASRC = \ $asrc # -$pname_CPPFLAGS = -D'CPU_FREQ=($cpuclockfreqUL)' -D'ARCH=(ARCH_DEFAULT)' -D'WIZ_AUTOGEN' -I$($pname_HW_PATH) -I$($pname_SRC_PATH) $($pname_CPU_CPPFLAGS) $($pname_USER_CPPFLAGS) +ifeq ($($pname_DEBUG),1) + $pname_CPPFLAGS = -D'CPU_FREQ=($cpuclockfreqUL)' -D'ARCH=(ARCH_DEFAULT)' -D'WIZ_AUTOGEN' -I$($pname_HW_PATH) -I$($pname_SRC_PATH) $($pname_CPU_CPPFLAGS) $($pname_USER_CPPFLAGS) +else + $pname_CPPFLAGS = -D'CPU_FREQ=($cpuclockfreqUL)' -D'ARCH=(ARCH_DEFAULT)' -D'WIZ_AUTOGEN' -I$($pname_HW_PATH) -I$($pname_SRC_PATH) $($pname_CPU_CPPFLAGS) $($pname_USER_CPPFLAGS) -fomit-frame-pointer +endif # Automatically generated by the wizard. PLEASE DO NOT EDIT! $pname_LDFLAGS = $($pname_CPU_LDFLAGS) $($pname_WIZARD_LDFLAGS) $($pname_USER_LDFLAGS) # Automatically generated by the wizard. PLEASE DO NOT EDIT! -$pname_CPPAFLAGS = $($pname_CPU_CPPAFLAGS) $($pname_WIZARD_CPPAFLAGS) $($pname_USER_CPPAFLAGS) +ifeq ($($pname_DEBUG),1) + # Production options + $pname_CPPAFLAGS = $($pname_CPU_CPPAFLAGS) $($pname_WIZARD_CPPAFLAGS) $($pname_USER_CPPAFLAGS) +else + # Debug options + $pname_CPPAFLAGS = $($pname_CPU_CPPAFLAGS) $($pname_WIZARD_CPPAFLAGS) $($pname_USER_CPPAFLAGS) -fomit-frame-pointer +endif # Automatically generated by the wizard. PLEASE DO NOT EDIT! $pname_CSRC = $($pname_CPU_CSRC) $($pname_WIZARD_CSRC) $($pname_USER_CSRC) -- 2.25.1