Skip stack checks whenbuilding with ASAN

This commit is contained in:
Saúl Ibarra Corretgé 2023-11-14 10:05:23 +01:00
parent b98df4d994
commit 9749a90cc6
2 changed files with 4 additions and 1 deletions

View file

@ -58,6 +58,9 @@ option(CONFIG_UBSAN "Enable UndefinedBehaviorSanitizer (UBSan)" OFF)
if(CONFIG_ASAN) if(CONFIG_ASAN)
message(STATUS "Building with ASan") message(STATUS "Building with ASan")
add_compile_definitions(
__ASAN__=1
)
add_compile_options( add_compile_options(
-fsanitize=address -fsanitize=address
-fno-sanitize-recover=all -fno-sanitize-recover=all

View file

@ -65,7 +65,7 @@
#define CONFIG_PRINTF_RNDN #define CONFIG_PRINTF_RNDN
#endif #endif
#if !defined(EMSCRIPTEN) #if !defined(EMSCRIPTEN) && !defined(__ASAN__)
/* enable stack limitation */ /* enable stack limitation */
#define CONFIG_STACK_CHECK #define CONFIG_STACK_CHECK
#endif #endif