PGO update
This commit is contained in:
parent
2606d6a50c
commit
d175d93ecc
24
firefox.spec
24
firefox.spec
@ -236,6 +236,7 @@ Patch407: mozilla-1667096.patch
|
|||||||
|
|
||||||
# PGO/LTO patches
|
# PGO/LTO patches
|
||||||
Patch600: pgo.patch
|
Patch600: pgo.patch
|
||||||
|
Patch602: mozilla-1516803.patch
|
||||||
Patch603: firefox-gcc-always-inline.patch
|
Patch603: firefox-gcc-always-inline.patch
|
||||||
|
|
||||||
# tentative patch for RUSTFLAGS parsing issue:
|
# tentative patch for RUSTFLAGS parsing issue:
|
||||||
@ -509,6 +510,7 @@ This package contains results of tests executed during build.
|
|||||||
%if %{build_with_pgo}
|
%if %{build_with_pgo}
|
||||||
%if !%{build_with_clang}
|
%if !%{build_with_clang}
|
||||||
%patch600 -p1 -b .pgo
|
%patch600 -p1 -b .pgo
|
||||||
|
%patch602 -p1 -b .1516803
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%patch603 -p1 -b .inline
|
%patch603 -p1 -b .inline
|
||||||
@ -626,7 +628,7 @@ chmod a-x third_party/rust/ash/src/extensions/nv/*.rs
|
|||||||
%build
|
%build
|
||||||
# Disable LTO to work around rhbz#1883904
|
# Disable LTO to work around rhbz#1883904
|
||||||
# Is that already fixed?
|
# Is that already fixed?
|
||||||
# %define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
|
|
||||||
%if 0%{?use_bundled_cbindgen}
|
%if 0%{?use_bundled_cbindgen}
|
||||||
mkdir -p my_rust_vendor
|
mkdir -p my_rust_vendor
|
||||||
@ -725,13 +727,21 @@ echo "mk_add_options MOZ_MAKE_FLAGS=\"-j%{_smp_build_ncpus}\"" >> .mozconfig
|
|||||||
|
|
||||||
echo "mk_add_options MOZ_SERVICES_SYNC=1" >> .mozconfig
|
echo "mk_add_options MOZ_SERVICES_SYNC=1" >> .mozconfig
|
||||||
echo "export STRIP=/bin/true" >> .mozconfig
|
echo "export STRIP=/bin/true" >> .mozconfig
|
||||||
#export MACH_USE_SYSTEM_PYTHON=1
|
|
||||||
|
|
||||||
%if %{launch_wayland_compositor}
|
%if %{launch_wayland_compositor}
|
||||||
cp %{SOURCE45} .
|
cp %{SOURCE45} .
|
||||||
. ./run-wayland-compositor
|
. ./run-wayland-compositor
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
export MACH_NATIVE_PACKAGE_SOURCE=system
|
||||||
|
mkdir -p objdir/_virtualenvs/init_py3
|
||||||
|
cat > objdir/_virtualenvs/init_py3/pip.conf << EOF
|
||||||
|
[global]
|
||||||
|
find-links=`pwd`/mochitest-python
|
||||||
|
no-index=true
|
||||||
|
EOF
|
||||||
|
tar xf %{SOURCE37}
|
||||||
|
|
||||||
%if %{build_with_pgo}
|
%if %{build_with_pgo}
|
||||||
%if %{test_on_wayland}
|
%if %{test_on_wayland}
|
||||||
env | grep "WAYLAND"
|
env | grep "WAYLAND"
|
||||||
@ -746,20 +756,14 @@ xvfb-run ./mach build -v 2>&1 | cat - || exit 1
|
|||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
%install
|
%install
|
||||||
# run Firefox test suite
|
# run Firefox test suite
|
||||||
export MACH_USE_SYSTEM_PYTHON=1
|
# Do we need it?
|
||||||
|
export MACH_NATIVE_PACKAGE_SOURCE=system
|
||||||
%if %{launch_wayland_compositor}
|
%if %{launch_wayland_compositor}
|
||||||
cp %{SOURCE45} .
|
cp %{SOURCE45} .
|
||||||
. ./run-wayland-compositor
|
. ./run-wayland-compositor
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?run_firefox_tests}
|
%if 0%{?run_firefox_tests}
|
||||||
mkdir -p objdir/_virtualenvs/init_py3
|
|
||||||
cat > objdir/_virtualenvs/init_py3/pip.conf << EOF
|
|
||||||
[global]
|
|
||||||
find-links=`pwd`/mochitest-python
|
|
||||||
no-index=true
|
|
||||||
EOF
|
|
||||||
tar xf %{SOURCE37}
|
|
||||||
cp %{SOURCE40} %{SOURCE41} %{SOURCE42} %{SOURCE38} %{SOURCE39} %{SOURCE43} %{SOURCE44} .
|
cp %{SOURCE40} %{SOURCE41} %{SOURCE42} %{SOURCE38} %{SOURCE39} %{SOURCE43} %{SOURCE44} .
|
||||||
mkdir -p test_results
|
mkdir -p test_results
|
||||||
%if %{test_on_wayland}
|
%if %{test_on_wayland}
|
||||||
|
Loading…
Reference in New Issue
Block a user