From ba856133e5f1a18de13106955e417f998be213e5 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 15 Aug 2024 17:47:25 +0800 Subject: math/py-numpy: Remove clang error condition in distutils check - Bump PORTREVISION for package change PR: 280715 Tested by: dim (with Clang 15 to 19) --- math/py-numpy/Makefile | 2 +- math/py-numpy/files/patch-clang | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 math/py-numpy/files/patch-clang (limited to 'math/py-numpy') diff --git a/math/py-numpy/Makefile b/math/py-numpy/Makefile index 25beecd6312b..d462d649969d 100644 --- a/math/py-numpy/Makefile +++ b/math/py-numpy/Makefile @@ -1,6 +1,6 @@ PORTNAME= numpy PORTVERSION= 1.26.4 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= math python MASTER_SITES= PYPI \ diff --git a/math/py-numpy/files/patch-clang b/math/py-numpy/files/patch-clang new file mode 100644 index 000000000000..5802f130651e --- /dev/null +++ b/math/py-numpy/files/patch-clang @@ -0,0 +1,13 @@ +--- numpy/distutils/checks/cpu_avx512_spr.c.orig 2024-02-05 21:17:48 UTC ++++ numpy/distutils/checks/cpu_avx512_spr.c +@@ -15,10 +15,6 @@ int main(int argc, char **argv) + + int main(int argc, char **argv) + { +-/* clang has a bug regarding our spr coode, see gh-23730. */ +-#if __clang__ +-#error +-#endif + __m512h a = _mm512_loadu_ph((void*)argv[argc-1]); + __m512h temp = _mm512_fmadd_ph(a, a, a); + _mm512_storeu_ph((void*)(argv[argc-1]), temp); -- cgit v1.2.3