The latest development version of this page may be more current than this released 1.14.1 version.
CONFIG_ASAN

Build with address sanitizer

Type: bool

Help

Builds Zephyr with Address Sanitizer enabled. This is currently only supported by the native_posix port, and requires a recent-ish compiler with the -fsanitize=address command line option, and the libasan library.

Direct dependencies

ARCH_POSIX

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

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At subsys/debug/Kconfig:65

Included via Kconfig:10Kconfig.zephyr:39subsys/Kconfig:14

Menu path: (top menu) → Debugging Options

config ASAN
    bool
    prompt "Build with address sanitizer" if ARCH_POSIX
    depends on ARCH_POSIX
    help
      Builds Zephyr with Address Sanitizer enabled.  This is currently
      only supported by the native_posix port, and requires a recent-ish
      compiler with the -fsanitize=address command line option, and
      the libasan library.

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