Skip to content

Commit

Permalink
Skip stack checks whenbuilding with ASAN
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Nov 14, 2023
1 parent b98df4d commit 9749a90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9749a90

Please sign in to comment.