diff --git a/nauty-popcnt.patch b/nauty-popcnt.patch index b158d2d..173e77b 100644 --- a/nauty-popcnt.patch +++ b/nauty-popcnt.patch @@ -2042,7 +2042,7 @@ Last-Update: 2020-05-21 +#ifndef __GNUC__ +#error Runtime popcount support is only available with GCC. +#endif -+#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) ++#if !__clang__ && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6)) +#error Runtime popcount support is only available with GCC 4.6 or later. +#endif +#include diff --git a/nauty.spec b/nauty.spec index 7f167d6..859bdb2 100644 --- a/nauty.spec +++ b/nauty.spec @@ -3,7 +3,7 @@ Name: nauty Version: %(tr r . <<< %{nautybasever}) -Release: 2%{?dist} +Release: 3%{?dist} Summary: Graph canonical labeling and automorphism group computation License: ASL 2.0 @@ -128,6 +128,9 @@ LD_LIBRARY_PATH=$PWD/.libs make check %{_libdir}/pkgconfig/%{name}.pc %changelog +* Tue Jan 05 2021 Timm Bäder - 2.7.1-3 +- Enable runtime popcount support on clang + * Tue Jul 28 2020 Fedora Release Engineering - 2.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild