Make build-debug.sh work
This commit is contained in:
parent
9a6d0d1bae
commit
5d9c50eb12
@ -52,6 +52,11 @@ if("${ARCH}" MATCHES "x86_64")
|
|||||||
target_link_options(moon PRIVATE -mno-red-zone)
|
target_link_options(moon PRIVATE -mno-red-zone)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(MOON_DEBUG_SYMBOLS)
|
||||||
|
message(STATUS "Building Moon with debug symbols")
|
||||||
|
target_compile_options(moon PRIVATE -ggdb)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_options(moon PRIVATE -lgcc -Wl,--build-id=none -z max-page-size=0x1000 -mcmodel=kernel)
|
target_link_options(moon PRIVATE -lgcc -Wl,--build-id=none -z max-page-size=0x1000 -mcmodel=kernel)
|
||||||
|
|
||||||
set_target_properties(moon PROPERTIES CXX_STANDARD 20)
|
set_target_properties(moon PROPERTIES CXX_STANDARD 20)
|
||||||
|
17
tools/build-debug.sh
Executable file
17
tools/build-debug.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
source $(dirname $0)/env.sh
|
||||||
|
|
||||||
|
cd $LUNA_ROOT
|
||||||
|
|
||||||
|
tools/setup.sh
|
||||||
|
|
||||||
|
rm -rf $BUILD_DIR
|
||||||
|
mkdir $BUILD_DIR
|
||||||
|
|
||||||
|
cmake -S . -B $BUILD_DIR -DMOON_DEBUG_SYMBOLS=ON -G "$CMAKE_GEN"
|
||||||
|
cmake --build $BUILD_DIR
|
||||||
|
cmake --install $BUILD_DIR
|
||||||
|
|
||||||
|
mkbootimg luna.json Luna.iso
|
Loading…
Reference in New Issue
Block a user