- choice COMPILER_OPTIMIZATIONS: 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.
Defaults
Choice options
Kconfig definition
At <Zephyr>/Kconfig.zephyr:273
Included via <Zephyr>/Kconfig:8
Menu path: (Top) → Build and Link Features → Compiler Options
choice COMPILER_OPTIMIZATIONS
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.)