www-apps/zola: Only sed out strip and debug from Cargo.toml

Otherwise LTO also gets disabled and upstream wants LTO as it
decreases binary size (45M -> 38M). Though LTO also
substantially increases build times due to `codegen-units=1`

Signed-off-by: zyxhere💭 <zyx@envs.net>
This commit is contained in:
zyxhere💭
2026-06-04 08:52:28 +00:00
parent 93f5518e5d
commit 97b2a3b278

View File

@@ -642,7 +642,7 @@ BDEPEND="virtual/pkgconfig"
src_prepare() {
default
# Upstream enables stripping on rel and disables debuginfo on dev
sed -i 's:profile:ignore:' Cargo.toml || die
sed -i '/strip/d;/debug = 0/d' Cargo.toml
# update libwebp-sys in webp crate
local libwebp_PV=0.14.2 webp_P=webp-0.3.1