mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
www-client/chromium: fix build on arm64 without crc extension
Closes: https://bugs.gentoo.org/851639 Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
This commit is contained in:
@@ -850,6 +850,12 @@ src_configure() {
|
||||
myconf_gn+=" symbol_level=0"
|
||||
fi
|
||||
|
||||
# user CXXFLAGS might overwrite -march=armv8-a+crc+crypto, bug #851639
|
||||
if use arm64 && tc-is-gcc; then
|
||||
sed -i '/^#if HAVE_ARM64_CRC32C/a #pragma GCC target ("+crc+crypto")' \
|
||||
third_party/crc32c/src/src/crc32c_arm64.cc || die
|
||||
fi
|
||||
|
||||
einfo "Configuring Chromium..."
|
||||
set -- gn gen --args="${myconf_gn} ${EXTRA_GN}" out/Release
|
||||
echo "$@"
|
||||
|
||||
@@ -927,6 +927,12 @@ src_configure() {
|
||||
myconf_gn+=" symbol_level=0"
|
||||
fi
|
||||
|
||||
# user CXXFLAGS might overwrite -march=armv8-a+crc+crypto, bug #851639
|
||||
if use arm64 && tc-is-gcc; then
|
||||
sed -i '/^#if HAVE_ARM64_CRC32C/a #pragma GCC target ("+crc+crypto")' \
|
||||
third_party/crc32c/src/src/crc32c_arm64.cc || die
|
||||
fi
|
||||
|
||||
einfo "Configuring Chromium..."
|
||||
set -- gn gen --args="${myconf_gn} ${EXTRA_GN}" out/Release
|
||||
echo "$@"
|
||||
|
||||
@@ -949,6 +949,12 @@ chromium_configure() {
|
||||
myconf_gn+=" chrome_pgo_phase=0"
|
||||
fi
|
||||
|
||||
# user CXXFLAGS might overwrite -march=armv8-a+crc+crypto, bug #851639
|
||||
if use arm64 && tc-is-gcc; then
|
||||
sed -i '/^#if HAVE_ARM64_CRC32C/a #pragma GCC target ("+crc+crypto")' \
|
||||
third_party/crc32c/src/src/crc32c_arm64.cc || die
|
||||
fi
|
||||
|
||||
einfo "Configuring Chromium..."
|
||||
set -- gn gen --args="${myconf_gn} ${EXTRA_GN}" out/Release
|
||||
echo "$@"
|
||||
|
||||
Reference in New Issue
Block a user