- 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:
parent
24611df712
commit
4ab35bc347
@ -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
|
||||
|
||||
|
21
bison.spec
21
bison.spec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user