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.
This commit is contained in:
Brian Gianforcaro 2021-07-30 03:31:10 -07:00 committed by Gunnar Beutner
parent 25b76462bf
commit 7fce0693a5
Notes: sideshowbarker 2024-07-18 07:44:44 +09:00

View file

@ -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")