From d71f64b97fe93bc8e81a40dc721b5e80955982f5 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 20 Apr 2021 23:15:43 +0200 Subject: [PATCH] Toolchain: Build GCC with optimizations --- Toolchain/BuildIt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Toolchain/BuildIt.sh b/Toolchain/BuildIt.sh index 591cb88b431..68069a3c175 100755 --- a/Toolchain/BuildIt.sh +++ b/Toolchain/BuildIt.sh @@ -31,8 +31,8 @@ SYSTEM_NAME="$(uname -s)" # We *most definitely* don't need debug symbols in the linker/compiler. # This cuts the uncompressed size from 1.2 GiB per Toolchain down to about 120 MiB. # Hence, this might actually cause marginal speedups, although the point is to not waste space as blatantly. -export CFLAGS="-g0" -export CXXFLAGS="-g0" +export CFLAGS="-g0 -O2" +export CXXFLAGS="-g0 -O2" if [ "$SYSTEM_NAME" = "OpenBSD" ]; then MAKE=gmake