From c915c064e8e42c4fa2e11754baf6c8dc6fb215ef Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 11 Aug 2026 18:26:06 +0300 Subject: [PATCH] BuildSystem: Compile cross gcc with optimizations I guess because I now pass explicit CXXFLAGS, gcc did not add the default optimization flags --- toolchain/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toolchain/build.sh b/toolchain/build.sh index d0e71a27..f90ee861 100755 --- a/toolchain/build.sh +++ b/toolchain/build.sh @@ -131,7 +131,8 @@ build_gcc () { --enable-lto \ --disable-nls \ --enable-languages=c,c++ \ - CXXFLAGS='-fno-char8_t' + CFLAGS='-O2' \ + CXXFLAGS='-O2 -fno-char8_t' XCFLAGS="" if [ $BANAN_ARCH = "x86_64" ]; then