The latest development version of this page may be more current than this released 1.14.0 version.
CONFIG_SPEED_OPTIMIZATIONS

Optimize for speed

Type: bool

Help

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

Direct dependencies

<choice: Optimization level>

(Includes any dependencies from if’s and menus.)

Kconfig definition

At Kconfig.zephyr:215

Included via Kconfig:10

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

config SPEED_OPTIMIZATIONS
    bool
    prompt "Optimize for speed" if <choice: Optimization level>
    depends on <choice: Optimization level>
    help
      Compiler optimizations will be set to -O2 independently of other
      options.

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