diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-06-14 14:24:06 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-06-15 10:08:43 +0200 |
| commit | cc915bee52fd2434cd68bbd1a8ab98b3d022fd52 (patch) | |
| tree | 0c62432d75619b0f7c68cd68171fd86e63b712fb /libs/kstd | |
| parent | 5d7c42ab3e296a979e31ab7842b0a9b7e32041f8 (diff) | |
| download | kernel-cc915bee52fd2434cd68bbd1a8ab98b3d022fd52.tar.xz kernel-cc915bee52fd2434cd68bbd1a8ab98b3d022fd52.zip | |
kstd: enable sanitizers for tests
Diffstat (limited to 'libs/kstd')
| -rw-r--r-- | libs/kstd/CMakeLists.txt | 8 |
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 ) |
