mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
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.
This commit is contained in:
parent
0ffc06b795
commit
c7cf56421a
1 changed files with 3 additions and 3 deletions
|
@ -283,9 +283,9 @@ if (NOT ${CMAKE_HOST_SYSTEM_NAME} MATCHES SerenityOS)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdlib -nostdinc -nostdinc++")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdlib -nostdinc -nostdinc++")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
# Kernel Undefined Behavior Sanitizer (KUBSAN)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined")
|
||||||
endif()
|
|
||||||
# Kernel Address Sanitize (KASAN) implementation is still a work in progress, this option
|
# 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.
|
# is not currently meant to be used, besides when developing Kernel ASAN support.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue