summaryrefslogtreecommitdiff
path: root/math/py-numpy/files/patch-clang
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--math/py-numpy/files/patch-clang13
1 files changed, 13 insertions, 0 deletions
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);