Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Michel Alexandre Salim
ecf2a4235c Disable building tests when compiling with GCC
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
2022-03-16 20:47:02 -07:00

View file

@ -7,9 +7,16 @@
%if %{with toolchain_clang}
%global toolchain clang
%bcond_without build_tests
%else
# failure when compiled with GCC 11:
# /builddir/build/BUILD/CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/compact_cache/tests/CCacheTests.cpp:114:1: required from here
# /builddir/build/BUILD/CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/../cachelib/compact_cache/CCacheFixedLruBucket.h:277:11: internal compiler error: Floating point exception
# 277 | memcpy(destPtr, srcPtr, sizeof(T));
# | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
%bcond_with build_tests
%endif
%bcond_without build_tests
# tests not discoverable by ctest yet
%bcond_with check