Skip stack checks whenbuilding with ASAN
This commit is contained in:
parent
b98df4d994
commit
9749a90cc6
2 changed files with 4 additions and 1 deletions
|
@ -58,6 +58,9 @@ option(CONFIG_UBSAN "Enable UndefinedBehaviorSanitizer (UBSan)" OFF)
|
|||
|
||||
if(CONFIG_ASAN)
|
||||
message(STATUS "Building with ASan")
|
||||
add_compile_definitions(
|
||||
__ASAN__=1
|
||||
)
|
||||
add_compile_options(
|
||||
-fsanitize=address
|
||||
-fno-sanitize-recover=all
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
#define CONFIG_PRINTF_RNDN
|
||||
#endif
|
||||
|
||||
#if !defined(EMSCRIPTEN)
|
||||
#if !defined(EMSCRIPTEN) && !defined(__ASAN__)
|
||||
/* enable stack limitation */
|
||||
#define CONFIG_STACK_CHECK
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue