diff options
author | 2025-04-13 01:03:25 +0100 | |
---|---|---|
committer | 2025-04-13 01:03:25 +0100 | |
commit | 32682f01faf0d2e596376f3e770d35c467059c16 (patch) | |
tree | 11c2067e7ce430c26437cdf8c526cc404c4ad696 /compile | |
parent | 9d9d9f3826496d08f779936368755e01781a3aac (diff) | |
download | sst-32682f01faf0d2e596376f3e770d35c467059c16.tar.gz sst-32682f01faf0d2e596376f3e770d35c467059c16.zip |
Enable trap-on-UB in debug builds
This will help catch bugs in code, including incorrect use of
unreachable/assume() macros.
Best to test our assumptions before relying on them.
Diffstat (limited to 'compile')
-rwxr-xr-x | compile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -25,7 +25,7 @@ stdflags="-std=c2x -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64" dbg=0 if [ "$dbg" = 1 ]; then - cflags="-O0 -g3" + cflags="-O0 -g3 -fsanitize-trap=undefined" ldflags="-O0 -g3" else cflags="-O2 -fvisibility=hidden" |