Use %%valgrind_arches to enable memcheck

This commit is contained in:
Björn Esser 2019-01-25 10:46:20 +01:00
parent bd0edaf411
commit c5aed7e7a9
No known key found for this signature in database
GPG Key ID: F52E98007594C21D

View File

@ -20,11 +20,13 @@
%endif
# Run memcheck?
%ifarch %{valgrind_arches}
# Valgrind does not work well on %%{power64} arches.
%ifnarch %{power64}
%bcond_without memcheck
%else
%ifarch %{power64}
%bcond_with memcheck
%else
%bcond_without memcheck
%endif
%endif