The latest development version of this page may be more current than this released 1.14.1 version.
choice: Optimization level

Optimization level

Type: bool

Help

Note that these flags shall only control the compiler optimization level, and that no extra debug code shall be conditionally compiled based on them.

Kconfig definition

At Kconfig.zephyr:199

Included via Kconfig:10

Menu path: (top menu) → Build and Link Features → Compiler Options

choice
    bool
    prompt "Optimization level"
    default NO_OPTIMIZATIONS if COVERAGE
    default DEBUG_OPTIMIZATIONS if DEBUG
    default SIZE_OPTIMIZATIONS
    help
      Note that these flags shall only control the compiler
      optimization level, and that no extra debug code shall be
      conditionally compiled based on them.

(Definitions include propagated dependencies, including from if’s and menus.)