Enable asan on debug macos aarch64 builds (#17058)

This commit is contained in:
pfg
2025-02-05 17:24:32 -08:00
committed by GitHub
parent 1ccc13ecf7
commit 5620a7dfac
11 changed files with 57 additions and 5 deletions

View File

@@ -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(