diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-02-24 10:11:26 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-02-24 10:11:26 +0000 |
| commit | b76fd5fcd04c7541c11c3d9c5b2edf1352d70c64 (patch) | |
| tree | f0bff3c441a844d864c56ab00948906116a44ab4 /CMakeLists.txt | |
| parent | 191e7ef3001e422c2f58efe7381d13932e1c1537 (diff) | |
| download | teachos-b76fd5fcd04c7541c11c3d9c5b2edf1352d70c64.tar.xz teachos-b76fd5fcd04c7541c11c3d9c5b2edf1352d70c64.zip | |
Enable run time and compile time sanitizers to catch more errors
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 12ac210..7d30a2c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,6 +75,7 @@ add_compile_options( "$<$<CXX_COMPILER_ID:GNU>:-Wextra>" "$<$<CXX_COMPILER_ID:GNU>:-Werror>" "$<$<CXX_COMPILER_ID:GNU>:-pedantic-errors>" + "$<$<CXX_COMPILER_ID:GNU>:-fsanitize=address,leak,bounds,alignment,return,integer-divide-by-zero,vla-bound,null,enum,pointer-overflow>" ) #[============================================================================[ |
