https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6618d978cd23d30bda5594f6ce79d68daac0c435

commit 6618d978cd23d30bda5594f6ce79d68daac0c435
Author:     Jérôme Gardou <[email protected]>
AuthorDate: Fri Aug 6 09:51:57 2021 +0200
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Fri Aug 6 15:17:49 2021 +0200

    [CMAKE] Do not disable optimisations on ntoskrnl build
---
 ntoskrnl/CMakeLists.txt | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/ntoskrnl/CMakeLists.txt b/ntoskrnl/CMakeLists.txt
index a359482aad8..b0cf73eec86 100644
--- a/ntoskrnl/CMakeLists.txt
+++ b/ntoskrnl/CMakeLists.txt
@@ -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)

Reply via email to