summaryrefslogtreecommitdiff
path: root/www-client/ungoogled-chromium/ungoogled-chromium-148.0.7778.56_p1.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'www-client/ungoogled-chromium/ungoogled-chromium-148.0.7778.56_p1.ebuild')
-rw-r--r--www-client/ungoogled-chromium/ungoogled-chromium-148.0.7778.56_p1.ebuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/www-client/ungoogled-chromium/ungoogled-chromium-148.0.7778.56_p1.ebuild b/www-client/ungoogled-chromium/ungoogled-chromium-148.0.7778.56_p1.ebuild
index 0ed415e7b9e8..88842fb6f80f 100644
--- a/www-client/ungoogled-chromium/ungoogled-chromium-148.0.7778.56_p1.ebuild
+++ b/www-client/ungoogled-chromium/ungoogled-chromium-148.0.7778.56_p1.ebuild
@@ -681,9 +681,10 @@ src_prepare() {
local PATCHES=()
rm "${WORKDIR}/chromium-patches-${PATCH_V}/common/cr131-unbundle-icu-target.patch"
- # if use pgo; then
- # rm "${WORKDIR}/chromium-patches-${PATCH_V}/rust/cr146-fix-botched-bytemuck-roll.patch"
- # fi
+ if use pgo; then
+ sed -i '/SupportedLaneCount/d' third_party/rust/chromium_crates_io/vendor/bytemuck-v1/src/zeroable.rs || die
+ sed -i '/SupportedLaneCount/d' third_party/rust/chromium_crates_io/vendor/bytemuck-v1/src/pod.rs || die
+ fi
#cp -f ${WORKDIR}/chromium-patches-${PATCH_V}/*-compiler.patch "${T}/compiler.patch"
##cp -f ${FILESDIR}/chromium-147-compiler.patch "${T}/compiler.patch"
@@ -1828,6 +1829,12 @@ src_configure() {
-mno-avx -mno-avx2 -mno-fma -mno-fma4 -mno-xop -mno-sse4a
myconf_gn+=( 'target_cpu="x64"' )
;;
+ x86)
+ # Bug 530248, 544702, 546984, 853646.
+ use !custom-cflags && filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 \
+ -mno-avx -mno-avx2 -mno-fma -mno-fma4 -mno-xop -mno-sse4a
+ myconf_gn+=( 'target_cpu="x86"' )
+ ;;
arm64)
myconf_gn+=( 'target_cpu="arm64"' )
;;