Make build-debug.sh also add debug symbols to luna
This commit is contained in:
parent
c657b302c9
commit
4fdd1d57f5
@ -7,6 +7,7 @@ set(FREESTANDING_SOURCES
|
|||||||
src/Units.cpp
|
src/Units.cpp
|
||||||
src/SystemError.cpp
|
src/SystemError.cpp
|
||||||
src/Bitmap.cpp
|
src/Bitmap.cpp
|
||||||
|
src/Stack.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set(SOURCES
|
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_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-freestanding PUBLIC ARCH_X86_64)
|
||||||
target_compile_definitions(luna 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()
|
endif()
|
@ -9,7 +9,7 @@ tools/setup.sh
|
|||||||
|
|
||||||
tools/full-clean.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 --build $BUILD_DIR
|
||||||
cmake --install $BUILD_DIR
|
cmake --install $BUILD_DIR
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user