From 0095db932cec54cd2735f595450fc5131efc0ffb Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 14 Jun 2026 15:48:49 +0200 Subject: tests: globally enable sanitizers --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 40648859..394f5bfe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,6 +105,9 @@ if(BUILD_TESTING) CXX_CLANG_TIDY "" ) endif() + + add_compile_options("$<$:-fsanitize=undefined,address>") + add_link_options("$<$:-fsanitize=undefined,address>") endif() #[============================================================================[ -- cgit v1.2.3