summaryrefslogtreecommitdiff
path: root/libre/iceweasel
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-05-07 02:49:25 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2020-05-07 02:49:25 -0400
commiteb6835eb363944c53f6127c82df9d7173f842e63 (patch)
tree7943a1666c47fb3a03238b73d78167e632b47629 /libre/iceweasel
parentf93c77a2a23420da0dbe5c64a098b4bbfaf65094 (diff)
downloadabslibre-eb6835eb363944c53f6127c82df9d7173f842e63.tar.gz
abslibre-eb6835eb363944c53f6127c82df9d7173f842e63.tar.bz2
abslibre-eb6835eb363944c53f6127c82df9d7173f842e63.zip
[iceweasel]: allow skipping the profiling build stage
Diffstat (limited to 'libre/iceweasel')
-rw-r--r--libre/iceweasel/PKGBUILD51
1 files changed, 29 insertions, 22 deletions
diff --git a/libre/iceweasel/PKGBUILD b/libre/iceweasel/PKGBUILD
index ee7179482..c035dbd8b 100644
--- a/libre/iceweasel/PKGBUILD
+++ b/libre/iceweasel/PKGBUILD
@@ -49,7 +49,7 @@ replaces=('firefox')
epoch=1
pkgver=75.0
pkgrel=1
-pkgrel+=.parabola3
+pkgrel+=.parabola4
_brandingver=75.0
_brandingrel=1
pkgdesc="Standalone web browser derived from Mozilla Firefox"
@@ -342,39 +342,46 @@ build() {
cp ../mozconfig .mozconfig
;;
x86_64)
- # Do 3-tier PGO
- echo "Building instrumented browser..."
- cat >.mozconfig ../mozconfig - <<END
+ _x86_64_skip_pgo=1
+ if (( $_x86_64_skip_pgo ))
+ then
+ # skipping PGO "instrumented browser"; so we have the final .mozconfig now
+ cp ../mozconfig .mozconfig
+ else
+ # Do 3-tier PGO
+ echo "Building instrumented browser..."
+ cat >.mozconfig ../mozconfig - <<END
ac_add_options --enable-profile-generate=cross
END
- ./mach build
+ ./mach build
- echo "Profiling instrumented browser..."
- ./mach package
- LLVM_PROFDATA=llvm-profdata \
- JARLOG_FILE="$PWD/jarlog" \
- xvfb-run -s "-screen 0 1920x1080x24 -nolisten local" \
- ./mach python build/pgo/profileserver.py
+ echo "Profiling instrumented browser..."
+ ./mach package
+ LLVM_PROFDATA=llvm-profdata \
+ JARLOG_FILE="$PWD/jarlog" \
+ xvfb-run -s "-screen 0 1920x1080x24 -nolisten local" \
+ ./mach python build/pgo/profileserver.py
- if [[ ! -s merged.profdata ]]; then
- echo "No profile data produced."
- return 1
- fi
+ if [[ ! -s merged.profdata ]]; then
+ echo "No profile data produced."
+ return 1
+ fi
- if [[ ! -s jarlog ]]; then
- echo "No jar log produced."
- return 1
- fi
+ if [[ ! -s jarlog ]]; then
+ echo "No jar log produced."
+ return 1
+ fi
- echo "Removing instrumented browser..."
- ./mach clobber
+ echo "Removing instrumented browser..."
+ ./mach clobber
- cat >.mozconfig ../mozconfig - <<END
+ cat >.mozconfig ../mozconfig - <<END
ac_add_options --enable-lto=cross
ac_add_options --enable-profile-use=cross
ac_add_options --with-pgo-profile-path=${PWD@Q}/merged.profdata
ac_add_options --with-pgo-jarlog=${PWD@Q}/jarlog
END
+ fi # $_x86_64_skip_pgo
;;
*) echo "no [ARCH-SPECIFIC BUILD CONFIG] for arch: ${CARCH}" ; return 1 ;
;;