Kernel: Make sure the kernel is re-linked when the linker script changes

This commit is contained in:
Gunnar Beutner 2021-06-17 19:26:37 +02:00 committed by Andreas Kling
commit b007898c35
Notes: sideshowbarker 2024-07-18 12:07:17 +09:00

View file

@ -387,6 +387,8 @@ endif()
add_executable(Kernel ${SOURCES})
add_dependencies(Kernel generate_EscapeSequenceStateMachine.h)
set_target_properties(Kernel PROPERTIES LINK_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/linker.ld)
if (ENABLE_KERNEL_LTO)
include(CheckIPOSupported)
check_ipo_supported()