- Use profile guided optimization (PGO) when building

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/bison?expand=0&rev=54
This commit is contained in:
Martin Pluskal 2018-10-02 10:27:54 +00:00 committed by Git OBS Bridge
parent 24611df712
commit 4ab35bc347
2 changed files with 20 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 2 09:27:28 UTC 2018 - Martin Pluskal <mpluskal@suse.com>
- Use profile guided optimization (PGO) when building
-------------------------------------------------------------------
Tue Oct 2 05:28:01 UTC 2018 - sean@suspend.net

View File

@ -45,12 +45,21 @@ Bison is a parser generator similar to yacc(1).
%setup -q
%build
%configure --disable-silent-rules \
--disable-rpath \
--docdir=%{_docdir}/%{name} \
gl_cv_func_printf_directive_n=yes \
gl_cv_func_printf_infinite_long_double=yes
make %{?_smp_mflags}
%configure \
--disable-silent-rules \
--disable-rpath \
--enable-nls \
--docdir=%{_docdir}/%{name} \
gl_cv_func_printf_directive_n=yes \
gl_cv_func_printf_infinite_long_double=yes
%if 0%{?do_profiling}
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" V=1
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" check
make %{?_smp_mflags} clean
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" V=1
%else
make %{?_smp_mflags} CFLAGS="%{optflags}"
%endif
%check
make %{?_smp_mflags} check