extra/chromium: fixes

This commit is contained in:
Kevin Mihelich 2021-10-03 23:24:31 +00:00
parent fe53d7fbd4
commit edd546e496

View file

@ -11,6 +11,7 @@
# - clang_use_default_sample_profile=false, AFDO breaks distcc
# - use_allocator="none", tcmalloc breaks ARM
# - patch and rebuild bundled eu-strip
# - disable LTO on v7
buildarch=12
highmem=1
@ -110,7 +111,12 @@ prepare() {
patch -p1 -i ../0003-Fix-eu-strip-build-for-newer-GCC.patch
# Build ARMv7 with NEON
[[ $CARCH == "armv7h" ]] && MAKEFLAGS="-j4" && CFLAGS=`echo $CFLAGS | sed -e 's/vfpv3-d16/neon/'` && CXXFLAGS="$CFLAGS"
if [[ $CARCH == "armv7h" ]]; then
export ALARM_NINJA_JOBS="4"
export MAKEFLAGS="-j4"
CFLAGS=`echo $CFLAGS | sed -e 's/vfpv3-d16/neon/'`
CXXFLAGS="$CFLAGS"
fi
# Allow build to set march and options on AArch64 (crc, crypto)
[[ $CARCH == "aarch64" ]] && CFLAGS=`echo $CFLAGS | sed -e 's/-march=armv8-a//'` && CXXFLAGS="$CFLAGS"
@ -224,6 +230,10 @@ build() {
_flags+=('symbol_level=0')
fi
if [[ $CARCH == "armv7h" ]]; then
_flags+=('use_thin_lto=false')
fi
# Facilitate deterministic builds (taken from build/config/compiler/BUILD.gn)
CFLAGS+=' -Wno-builtin-macro-redefined'
CXXFLAGS+=' -Wno-builtin-macro-redefined'