SHA256
1
0
forked from pool/benchmark

Accepting request 618947 from devel:tools

- Enable lto
- Update dependencies

OBS-URL: https://build.opensuse.org/request/show/618947
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/benchmark?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2018-06-27 08:21:17 +00:00 committed by Git OBS Bridge
commit feb7e548dd
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jun 25 11:56:55 UTC 2018 - mpluskal@suse.com
- Enable lto
- Update dependencies
-------------------------------------------------------------------
Mon May 28 21:43:24 UTC 2018 - avindra@opensuse.org

View File

@ -31,6 +31,7 @@ BuildRequires: gcc-c++
BuildRequires: git-core
BuildRequires: gmock
BuildRequires: gtest
BuildRequires: pkgconfig
%description
A library to support the benchmarking of functions, similar to unit-tests.
@ -58,14 +59,14 @@ Development files for google benchmark library
sed -i 's|lib_install_dir "lib/"|lib_install_dir "lib64/"|g' src/CMakeLists.txt
%endif
%cmake \
-DBENCHMARK_ENABLE_LTO=off \
-DBENCHMARK_ENABLE_LTO=on \
-DBENCHMARK_ENABLE_TESTING=true
%make_jobs
%install
%cmake_install
# dont ship debug stuff
rm -rf %{_libexecdir}/debug
rm -rf %{buildroot}%{_libexecdir}/debug
%check
# path needs to be exported otherwise unit tests will fail