From f7e549e4125ee9d0148812f5902cd4cce4e2d16b Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 17 Sep 2024 22:30:40 +0300 Subject: [PATCH] Toolchain: Run `strip` after installing toolchain This drops installed toolchain size to around fifth :D --- toolchain/build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolchain/build.sh b/toolchain/build.sh index ef8d1d4107..1087e427d6 100755 --- a/toolchain/build.sh +++ b/toolchain/build.sh @@ -273,3 +273,5 @@ if (($BUILD_LIBSTDCPP)); then build_libstdcpp fi + +find "$BANAN_TOOLCHAIN_PREFIX" -type f -executable -exec strip --strip-unneeded {} + 2>/dev/null