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 <Zephyr>/Kconfig.zephyr:184

Included via <Zephyr>/Kconfig:8

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

choice
    bool "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.

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