summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-24 20:47:56 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-24 20:47:56 +0100
commitc7cf56421a5c623747719eac0b966d87476df8bc (patch)
tree2c610ab0daf2eee371f859c8ce29c7f7739d20fa /Kernel
parent0ffc06b795865314009c29b6930cab3603e7bcec (diff)
downloadserenity-c7cf56421a5c623747719eac0b966d87476df8bc.zip
Kernel: Build with -fsanitize=undefined for all compilers
Now that we don't specify individual -fsanitize=foo options, the Clang inside CLion can handle it just fine, so no need for this workaround.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/CMakeLists.txt b/Kernel/CMakeLists.txt
index 31a4c9c6d9..f77281137c 100644
--- a/Kernel/CMakeLists.txt
+++ b/Kernel/CMakeLists.txt
@@ -283,9 +283,9 @@ if (NOT ${CMAKE_HOST_SYSTEM_NAME} MATCHES SerenityOS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdlib -nostdinc -nostdinc++")
endif()
-if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined")
-endif()
+# Kernel Undefined Behavior Sanitizer (KUBSAN)
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined")
+
# Kernel Address Sanitize (KASAN) implementation is still a work in progress, this option
# is not currently meant to be used, besides when developing Kernel ASAN support.
#