aboutsummaryrefslogtreecommitdiff
path: root/source/cmake/Platforms/x86_64.cmake
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2023-10-08 12:23:11 +0200
committerFelix Morgner <felix.morgner@ost.ch>2023-10-08 12:23:11 +0200
commita18c6f87dee3ebf0432a6f7a633272423718faf2 (patch)
treeda5db11403192a41d8d0e09a432dc285fcd442cd /source/cmake/Platforms/x86_64.cmake
parent1dc90e111a7f11f198b1bf327723d11cb018af32 (diff)
downloadteachos-a18c6f87dee3ebf0432a6f7a633272423718faf2.tar.xz
teachos-a18c6f87dee3ebf0432a6f7a633272423718faf2.zip
x86_64: improve debugging experience
Diffstat (limited to 'source/cmake/Platforms/x86_64.cmake')
-rw-r--r--source/cmake/Platforms/x86_64.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/cmake/Platforms/x86_64.cmake b/source/cmake/Platforms/x86_64.cmake
index b681937..25aa27b 100644
--- a/source/cmake/Platforms/x86_64.cmake
+++ b/source/cmake/Platforms/x86_64.cmake
@@ -9,6 +9,8 @@ string(REGEX REPLACE "/crtbegin.o" "" CMAKE_SYSROOT "${CRT_BEGIN}")
mark_as_advanced(CMAKE_SYSROOT)
set(CMAKE_CXX_FLAGS_INIT "-m64 -mno-red-zone -mcmodel=large -fno-exceptions")
+set(CMAKE_CXX_FLAGS_DEBUG "-ggdb3")
+set(CMAKE_ASM_FLAGS_DEBUG "-ggdb3")
set(CMAKE_EXE_LINKER_FLAGS_INIT "-nostartfiles")
set(CMAKE_CXX_LINK_EXECUTABLE
"<CMAKE_CXX_COMPILER> \
@@ -20,4 +22,4 @@ set(CMAKE_CXX_LINK_EXECUTABLE
-o <TARGET> \
<LINK_LIBRARIES> \
${CMAKE_SYSROOT}/crtend.o"
-)
+) \ No newline at end of file