更新 toolchain/build.sh

Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
zhao 2025-03-26 15:47:24 +08:00
parent c9ae917d72
commit 497f703fd4

View File

@ -164,6 +164,12 @@ elif [ "$model" = "OpenWrt_X86_64_v24.10" ]; then
curl -s https://git.kejizero.online/zhao/files/raw/branch/main/toolchain/Configs/immortalwrt_x86_64.config > .config
fi
# LTO
curl -s $mirror/generic/config-lto >> .config
# mold
echo 'CONFIG_USE_MOLD=y' >> .config
# gcc14 & 15
if [ "$USE_GCC13" = y ]; then
export USE_GCC13=y gcc_version=13