From c14381a3931f2aaf35e38d01e74657face05f75f Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Mon, 24 Feb 2020 18:49:04 -0800 Subject: [PATCH] default to O2 (#1155) --- firmware/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/firmware/Makefile b/firmware/Makefile index 9342d8f8dd..c104fb43aa 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -22,8 +22,11 @@ include rusefi.mk # for 'release' options see 'clean_compile_two_versions.bat' file ifeq ($(DEBUG_LEVEL_OPT),) - # this value would be used by default. For 'release' configuration override with '-O2' or something along these lines - DEBUG_LEVEL_OPT = -O0 -ggdb -g3 + # Default to a release build - but leave in debug info. It doesn't change the hex/bin output. + DEBUG_LEVEL_OPT = -O2 -ggdb -g3 + # Comment the above and uncomment the line below if you want to debug the firmware (it's difficult-to-impossible + # to debug firmware with optimization enabled). + # DEBUG_LEVEL_OPT = -O0 -ggdb -g3 endif