USE=pgo is currently known to be broken when using GCC.
Instead of silently ignoring USE=pgo when using GCC, we are
forcing a user decision so user has the chance to enable USE=clang
in case PGO is important for user without wasting 2+ hours
commpiling firefox just to find out that PGO which was requested
was ignored.
Bug: https://bugs.gentoo.org/709594
Bug: https://bugs.gentoo.org/709654
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
if ! has usersandbox $FEATURES ; then
die "You must enable usersandbox as X server can not run as root!"
fi
+
+ if ! use clang ; then
+ # Force user decision so they don't find out firefox was build
+ # without pgo after spending some hours
+ eerror "USE=pgo when using GCC is currently known to be broken."
+ eerror "Either switch to USE=clang or temporarily set USE=-pgo."
+ die "USE=pgo without USE=clang is currently known to be broken."
+ fi
fi
# Ensure we have enough disk space to compile