BuildSystem: add rule to build libstdc++

We can now build libstdc++ and actually link with g++
This commit is contained in:
Bananymous
2023-06-02 18:39:42 +03:00
parent 8645c4c653
commit 2df7f8a1e5
3 changed files with 13 additions and 1 deletions

View File

@@ -54,6 +54,12 @@ add_custom_target(toolchain
USES_TERMINAL
)
add_custom_target(libstdc++
COMMAND ${CMAKE_COMMAND} -E env LIBSTDCPP="1" ${CMAKE_SOURCE_DIR}/toolchain/build.sh
DEPENDS libc-install
USES_TERMINAL
)
add_custom_target(image
COMMAND ${CMAKE_COMMAND} -E env SYSROOT="${BANAN_SYSROOT}" DISK_IMAGE_PATH="${DISK_IMAGE_PATH}" ${CMAKE_SOURCE_DIR}/image.sh
DEPENDS kernel-install