mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[NTOSKRNL] Completely disable optimizations when using GDB
This commit is contained in:
parent
ab825334dd
commit
f26754e6dd
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,8 @@ if(MSVC)
|
|||
add_target_link_flags(ntoskrnl "/SECTION:INIT,D")
|
||||
else()
|
||||
if(GDB)
|
||||
# Completely disable optimizations when debugging the kernel
|
||||
target_compile_options(ntoskrnl PRIVATE -O0)
|
||||
set_image_base(ntoskrnl 0x00800000)
|
||||
else()
|
||||
set_image_base(ntoskrnl 0x80800000)
|
||||
|
|
Loading…
Reference in a new issue