The latest development version of this page may be more current than this released 2.3.0 version.
CONFIG_NO_OPTIMIZATIONS

Optimize nothing

Type: bool

Help

Compiler optimizations will be set to -O0 independently of other options.

Direct dependencies

<choice: Optimization level>

(Includes any dependencies from ifs and menus.)

Kconfig definition

At Kconfig.zephyr:229

Included via Kconfig:8

Menu path: (Top) → Build and Link Features → Compiler Options → Optimization level

config NO_OPTIMIZATIONS
    bool "Optimize nothing"
    depends on <choice: Optimization level>
    help
      Compiler optimizations will be set to -O0 independently of other
      options.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)