Skip to content

Commit

Permalink
enable asan in CompilerFlags.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
pfgithub committed Feb 5, 2025
1 parent a0dbe9e commit bf8f3d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/CompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ if(WIN32)
)
endif()

if(ENABLE_ASAN)
register_compiler_flags(
DESCRIPTION "Enable AddressSanitizer"
-fsanitize=address
)
endif()

# --- Optimization level ---
if(DEBUG)
register_compiler_flags(
Expand Down

0 comments on commit bf8f3d4

Please sign in to comment.