aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-06-14 15:48:49 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-06-15 10:08:43 +0200
commit0095db932cec54cd2735f595450fc5131efc0ffb (patch)
treeca8a6fbf38df0047bbaece201a354d6d4f09b5e3 /CMakeLists.txt
parentcc915bee52fd2434cd68bbd1a8ab98b3d022fd52 (diff)
downloadkernel-0095db932cec54cd2735f595450fc5131efc0ffb.tar.xz
kernel-0095db932cec54cd2735f595450fc5131efc0ffb.zip
tests: globally enable sanitizers
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
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("$<$<CXX_COMPILER_ID:GNU>:-fsanitize=undefined,address>")
+ add_link_options("$<$<CXX_COMPILER_ID:GNU>:-fsanitize=undefined,address>")
endif()
#[============================================================================[