[CMAKE] Do not disable optimisations on ntoskrnl build

This commit is contained in:
Jérôme Gardou
2021-08-06 15:17:49 +02:00
parent 0bc00267df
commit 6618d978cd
-7
View File
@@ -46,13 +46,6 @@ set_module_type(ntoskrnl kernel)
source_group(TREE ${REACTOS_SOURCE_DIR}/ntoskrnl PREFIX "Source Files" FILES ${NTOSKRNL_SOURCE})
if(GDB AND NOT CLANG)
# Completely disable optimizations when debugging the kernel
# Not for CLang, which fails as following in _SEH2_EXCEPT macro:
# error: inline assembly requires more registers than available
target_compile_options(ntoskrnl PRIVATE -O0)
endif()
target_link_libraries(ntoskrnl cportlib csq ${PSEH_LIB} arbiter cmlib ntlsalib rtl ${ROSSYM_LIB} libcntpr wdmguid ioevent)
if(STACK_PROTECTOR)