CONFIG_COMPILER_OPT

Custom compiler options

Type: string

Help

This option is a free-form string that is passed to the compiler when building all parts of a project (i.e. kernel). The compiler options specified by this string supplement the predefined set of compiler supplied by the build system, and can be used to change compiler optimization, warning and error messages, and so on.

Defaults

No defaults. Implicitly defaults to the empty string.

Kconfig definition

At Kconfig.zephyr:237

Included via Kconfig:10

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

config COMPILER_OPT
    string
    prompt "Custom compiler options"
    help
      This option is a free-form string that is passed to the compiler
      when building all parts of a project (i.e. kernel).
      The compiler options specified by this string supplement the
      predefined set of compiler supplied by the build system,
      and can be used to change compiler optimization, warning and error
      messages, and so on.

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