From b1bf028de5b0eec0414034df3021003005c9b704 Mon Sep 17 00:00:00 2001 From: Yuma Endo Date: Sun, 22 Mar 2026 15:32:18 +0900 Subject: [PATCH] feat: add --enable-checking=release and --disable-nls to GCC configure - --enable-checking=release: disable expensive internal consistency checks for production builds (Homebrew/Arch/Gentoo best practice) - --disable-nls: omit translated error messages, reducing binary size and build dependencies (English diagnostics sufficient for dev toolchain) - --with-system-zlib intentionally NOT adopted: scrap distributes self-contained toolchains, bundled zlib avoids host dependency --- molds/gcc/15.2.0/mold.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/molds/gcc/15.2.0/mold.toml b/molds/gcc/15.2.0/mold.toml index e2c319b..31da8b5 100644 --- a/molds/gcc/15.2.0/mold.toml +++ b/molds/gcc/15.2.0/mold.toml @@ -27,6 +27,8 @@ configure_args = [ "--enable-languages=c,c++", "--disable-multilib", "--disable-bootstrap", + "--enable-checking=release", + "--disable-nls", ] make_args = ["-j$(nproc)"]