aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-06-14 14:24:06 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-06-15 10:08:43 +0200
commitcc915bee52fd2434cd68bbd1a8ab98b3d022fd52 (patch)
tree0c62432d75619b0f7c68cd68171fd86e63b712fb /libs
parent5d7c42ab3e296a979e31ab7842b0a9b7e32041f8 (diff)
downloadkernel-cc915bee52fd2434cd68bbd1a8ab98b3d022fd52.tar.xz
kernel-cc915bee52fd2434cd68bbd1a8ab98b3d022fd52.zip
kstd: enable sanitizers for tests
Diffstat (limited to 'libs')
-rw-r--r--libs/kstd/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/kstd/CMakeLists.txt b/libs/kstd/CMakeLists.txt
index d85f003..aba33ab 100644
--- a/libs/kstd/CMakeLists.txt
+++ b/libs/kstd/CMakeLists.txt
@@ -88,6 +88,14 @@ if(BUILD_TESTING)
"kstd::lib"
)
+ target_compile_options("kstd_tests" PRIVATE
+ "-fsanitize=undefined,address"
+ )
+
+ target_link_options("kstd_tests" PRIVATE
+ "-fsanitize=undefined,address"
+ )
+
set_target_properties("kstd_tests" PROPERTIES
EXCLUDE_FROM_ALL NO
)