From 5f56e4b63a9524b2aa9dd119c9e9f96a1a527ea6 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 11 Dec 2024 19:19:36 +0100 Subject: [PATCH] kernel: Disable UBSAN in debug.cmake UBSAN seems to bloat the kernel too much, so let's make debug.cmake actually usable for debugging by commenting it out. --- kernel/debug.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/debug.cmake b/kernel/debug.cmake index c272cd71..ed4e3b73 100644 --- a/kernel/debug.cmake +++ b/kernel/debug.cmake @@ -12,4 +12,4 @@ target_compile_definitions(moon PRIVATE DEVICE_REGISTRY_DEBUG) target_compile_definitions(moon PRIVATE FORK_DEBUG) target_compile_definitions(moon PRIVATE MOUNT_DEBUG) target_compile_definitions(moon PRIVATE CACHE_DEBUG) -target_compile_options(moon PRIVATE -fsanitize=undefined) +#target_compile_options(moon PRIVATE -fsanitize=undefined)