Make build-debug.sh also add debug symbols to luna

This commit is contained in:
apio 2022-12-07 14:32:07 +01:00 committed by Gitea
parent c657b302c9
commit 4fdd1d57f5
2 changed files with 8 additions and 1 deletions

View File

@ -7,6 +7,7 @@ set(FREESTANDING_SOURCES
src/Units.cpp
src/SystemError.cpp
src/Bitmap.cpp
src/Stack.cpp
)
set(SOURCES
@ -41,4 +42,10 @@ target_compile_options(luna-freestanding PRIVATE -mno-red-zone)
target_compile_options(luna-freestanding PRIVATE -mno-80387 -mno-mmx -mno-sse -mno-sse2)
target_compile_definitions(luna-freestanding PUBLIC ARCH_X86_64)
target_compile_definitions(luna PUBLIC ARCH_X86_64)
endif()
if(LUNA_DEBUG_SYMBOLS)
message(STATUS "Building Luna with debug symbols")
target_compile_options(luna PRIVATE -ggdb)
target_compile_options(luna-freestanding PRIVATE -ggdb)
endif()

View File

@ -9,7 +9,7 @@ tools/setup.sh
tools/full-clean.sh
cmake -S . -B $BUILD_DIR -DMOON_DEBUG_SYMBOLS=ON -G "$CMAKE_GEN"
cmake -S . -B $BUILD_DIR -DMOON_DEBUG_SYMBOLS=ON -DLUNA_DEBUG_SYMBOLS=ON -G "$CMAKE_GEN"
cmake --build $BUILD_DIR
cmake --install $BUILD_DIR