mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
feat(build): support KASAN in the build system v2 (cmakev2)
Mirror Kernel Address Sanitizer support into cmakev2 so that CONFIG_COMPILER_KASAN instruments application code the same way build system v1 does.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user