diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-06-14 15:48:49 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-06-15 10:08:43 +0200 |
| commit | 0095db932cec54cd2735f595450fc5131efc0ffb (patch) | |
| tree | ca8a6fbf38df0047bbaece201a354d6d4f09b5e3 /CMakeLists.txt | |
| parent | cc915bee52fd2434cd68bbd1a8ab98b3d022fd52 (diff) | |
| download | kernel-0095db932cec54cd2735f595450fc5131efc0ffb.tar.xz kernel-0095db932cec54cd2735f595450fc5131efc0ffb.zip | |
tests: globally enable sanitizers
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 3 |
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() #[============================================================================[ |
