www-client/chromium: fix M142 build with older Rust

A patch for building with Rust < 1.90.0 was missed.

Reported-by: Tolga Uçar <freetolga@protonmail.com>
Signed-off-by: Matt Jolly <kangie@gentoo.org>
This commit is contained in:
Matt Jolly
2025-11-06 21:15:02 +10:00
parent 5ca0bd61ac
commit f73607ce02

View File

@@ -572,6 +572,12 @@ src_prepare() {
PATCHES+=( "${FILESDIR}/chromium-140-__rust_no_alloc_shim_is_unstable.patch" )
fi
if ver_test ${RUST_SLOT} -lt "1.90.0"; then
PATCHES+=(
"${WORKDIR}/copium/cr142-rust-pre1.90.patch"
)
fi
if ver_test ${RUST_SLOT} -lt "1.91.0"; then
PATCHES+=(
"${WORKDIR}/copium/cr142-crabbyavif-gn-rust-pre1.91.patch"