mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[CMAKE] Do not disable optimisations on ntoskrnl build
This commit is contained in:
parent
0bc00267df
commit
6618d978cd
1 changed files with 0 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue