From 5f6a659fa11e14dfc3ddb666771daf7630cc8a46 Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 25 Feb 2023 17:37:50 +0100 Subject: [PATCH] kernel: Enable UBSAN when building in debug mode --- kernel/debug.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/debug.cmake b/kernel/debug.cmake index 74074888..c775e522 100644 --- a/kernel/debug.cmake +++ b/kernel/debug.cmake @@ -1 +1,2 @@ target_compile_definitions(moon PRIVATE LOCKED_VALUE_DEBUG) +target_compile_options(moon PRIVATE -fsanitize=undefined)