The latest development version of this page may be more current than this released 2.7.5 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 ifs and menus.)

Kconfig definition

At Kconfig.zephyr:291

Included via Kconfig:8

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

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

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