diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-07-30 03:31:10 -0700 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-07-30 16:58:09 +0200 |
commit | 7fce0693a511a4551399e01a8a4474d28a7c261c (patch) | |
tree | b01f9fbb0c38eb234355a0fce95bf91487ef87e7 /Kernel/Prekernel/CMakeLists.txt | |
parent | 25b76462bf137958957a1955f1b696bde8354b20 (diff) | |
download | serenity-7fce0693a511a4551399e01a8a4474d28a7c261c.zip |
Prekernel: Disable KASAN, so it has no effect when enabled
I was working on some more KASAN changes and realized the system
no longer links when passing -DENABLE_KERNEL_ADDRESS_SANITIZER=ON.
Prekernel will likely never have KASAN support given it's limited
environment, so just suppress it's usage.
Diffstat (limited to 'Kernel/Prekernel/CMakeLists.txt')
-rw-r--r-- | Kernel/Prekernel/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Prekernel/CMakeLists.txt b/Kernel/Prekernel/CMakeLists.txt index cc059d8792..7615dff660 100644 --- a/Kernel/Prekernel/CMakeLists.txt +++ b/Kernel/Prekernel/CMakeLists.txt @@ -30,4 +30,4 @@ add_custom_command( ) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/Prekernel" DESTINATION boot) -set_source_files_properties(${SOURCES} PROPERTIES COMPILE_FLAGS "-fno-sanitize-coverage=trace-pc") +set_source_files_properties(${SOURCES} PROPERTIES COMPILE_FLAGS "-fno-sanitize-coverage=trace-pc -fno-sanitize=kernel-address") |