Skip to content

Commit d024df6

Browse files
committed
esp32s2: Use better optimizer flags in debug builds
(note that the before and after files both lack trailing newlines; this is how the esp-idf do) OPTIMIZATION_DEFAULT is -Og, which enables optimizations that do not interfere with the debugger: ``` elseif(CONFIG_COMPILER_OPTIMIZATION_DEFAULT) list(APPEND compile_options "-Og") ```
1 parent 9993814 commit d024df6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ports/esp32s2/esp-idf-config/sdkconfig-debug.defaults

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ CONFIG_ESP_CONSOLE_UART_BAUDRATE=115200
1010
CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y
1111
# CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT is not set
1212
# CONFIG_ESP_SYSTEM_PANIC_SILENT_REBOOT is not set
13-
# CONFIG_ESP_SYSTEM_PANIC_GDBSTUB is not set
13+
# CONFIG_ESP_SYSTEM_PANIC_GDBSTUB is not set
14+
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_DEBUG=y
15+
CONFIG_COMPILER_OPTIMIZATION_DEFAULT=y
16+
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=y

0 commit comments

Comments
 (0)