forked from pool/bison
- 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
|
Tue Oct 2 05:28:01 UTC 2018 - sean@suspend.net
|
||||||
|
|
||||||
|
13
bison.spec
13
bison.spec
@ -45,12 +45,21 @@ Bison is a parser generator similar to yacc(1).
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-silent-rules \
|
%configure \
|
||||||
|
--disable-silent-rules \
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
|
--enable-nls \
|
||||||
--docdir=%{_docdir}/%{name} \
|
--docdir=%{_docdir}/%{name} \
|
||||||
gl_cv_func_printf_directive_n=yes \
|
gl_cv_func_printf_directive_n=yes \
|
||||||
gl_cv_func_printf_infinite_long_double=yes
|
gl_cv_func_printf_infinite_long_double=yes
|
||||||
make %{?_smp_mflags}
|
%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
|
%check
|
||||||
make %{?_smp_mflags} check
|
make %{?_smp_mflags} check
|
||||||
|
Loading…
x
Reference in New Issue
Block a user