From 3b18730af68d7e09b36a16305d1237733e026ef0 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sat, 25 May 2024 19:17:13 +0300 Subject: [PATCH] BuildSystem: Don't build libstdc++ as libc is not complete enough --- toolchain/build.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/toolchain/build.sh b/toolchain/build.sh index 90711f8a..6a4612ea 100755 --- a/toolchain/build.sh +++ b/toolchain/build.sh @@ -206,6 +206,15 @@ if [[ -f $BANAN_TOOLCHAIN_PREFIX/bin/$BANAN_TOOLCHAIN_TRIPLE_PREFIX-gcc ]]; then fi fi +BUILD_LIBSTDCPP=0 +#BUILD_LIBSTDCPP=$BUILD_GCC +#if ! (($BUILD_LIBSTDCPP)); then +# read -e -p "Do you want to rebuild libstdc++ [y/N]? " choice +# if [[ "$choice" == [Yy]* ]]; then +# BUILD_LIBSTDCPP=1 +# fi +#fi + BUILD_GRUB=1 if [[ -f $BANAN_TOOLCHAIN_PREFIX/bin/grub-mkstandalone ]]; then echo "You already seem to have a grub installed." @@ -251,7 +260,7 @@ if (($BUILD_CMAKE)); then build_cmake fi -if (($BUILD_GCC)); then +if (($BUILD_LIBSTDCPP)); then # delete sysroot and install libc rm -r $BANAN_SYSROOT $BANAN_SCRIPT_DIR/build.sh libc-install