Merge branch 'feat/buildv2_kasan' into 'master'

feat(build): support KASAN in the build system v2 (cmakev2)

See merge request espressif/esp-idf!51408
This commit is contained in:
Sudeep Mohanty
2026-08-04 17:34:00 +02:00
8 changed files with 170 additions and 48 deletions
@@ -96,6 +96,10 @@ idf_build_set_property(SET_COMPILER_OPTIMIZATION NO)
# file name, which LTO does not preserve, so it must never be compiled or linked
# with LTO regardless of the application's CONFIG_COMPILER_LTO_* options.
idf_build_set_property(SET_COMPILER_LTO NO)
# The bootloader runs before kasan_init_shadow() and carries no sanitizer
# runtime, so it must never be instrumented regardless of the application's
# CONFIG_COMPILER_KASAN option.
idf_build_set_property(SET_COMPILER_KASAN NO)
# Perform internal IDF project initialisation
idf_project_init()