Enable runtime popcount support on clang
clang defines both __GNUC__ and __GNUC__MINOR__, but to 4 and 2 respectively.
This commit is contained in:
parent
ffc29efb60
commit
38630ab245
|
@ -2042,7 +2042,7 @@ Last-Update: 2020-05-21
|
||||||
+#ifndef __GNUC__
|
+#ifndef __GNUC__
|
||||||
+#error Runtime popcount support is only available with GCC.
|
+#error Runtime popcount support is only available with GCC.
|
||||||
+#endif
|
+#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.
|
+#error Runtime popcount support is only available with GCC 4.6 or later.
|
||||||
+#endif
|
+#endif
|
||||||
+#include <cpuid.h>
|
+#include <cpuid.h>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
Name: nauty
|
Name: nauty
|
||||||
Version: %(tr r . <<< %{nautybasever})
|
Version: %(tr r . <<< %{nautybasever})
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Graph canonical labeling and automorphism group computation
|
Summary: Graph canonical labeling and automorphism group computation
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
|
@ -128,6 +128,9 @@ LD_LIBRARY_PATH=$PWD/.libs make check
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 05 2021 Timm Bäder <tbaeder@redhat.com> - 2.7.1-3
|
||||||
|
- Enable runtime popcount support on clang
|
||||||
|
|
||||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-2
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue