summaryrefslogtreecommitdiff
path: root/dev-libs/simde/files/simde-0.7.6-musl.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-08 13:07:48 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-08 13:07:48 +0000
commit7825305c5ddf11fffe24fa30453c4e8468f64305 (patch)
treef3c43caefa7210acc3d8fd79ac82f8ade47a8dc9 /dev-libs/simde/files/simde-0.7.6-musl.patch
parentdc22a05dc2db2827053483e8cab136b33b339307 (diff)
gentoo auto-resync : 08:03:2024 - 13:07:48
Diffstat (limited to 'dev-libs/simde/files/simde-0.7.6-musl.patch')
-rw-r--r--dev-libs/simde/files/simde-0.7.6-musl.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-libs/simde/files/simde-0.7.6-musl.patch b/dev-libs/simde/files/simde-0.7.6-musl.patch
new file mode 100644
index 000000000000..c070f858ea81
--- /dev/null
+++ b/dev-libs/simde/files/simde-0.7.6-musl.patch
@@ -0,0 +1,18 @@
+This workaround patch should be removable when musl implements C23
+functions (technically this isn't a __GLIBC__-only quirk, but used
+due to lack of anything better beside running a build test for it).
+
+https://bugs.gentoo.org/926488
+https://github.com/simd-everywhere/simde/issues/1001
+--- a/simde/simde-math.h
++++ b/simde/simde-math.h
+@@ -1182,3 +1182,3 @@
+ #if \
+- (!defined(HEDLEY_EMSCRIPTEN_VERSION) && HEDLEY_HAS_BUILTIN(__builtin_roundeven)) || \
++ (defined (__GLIBC__) && !defined(HEDLEY_EMSCRIPTEN_VERSION) && HEDLEY_HAS_BUILTIN(__builtin_roundeven)) || \
+ HEDLEY_GCC_VERSION_CHECK(10,0,0)
+@@ -1202,3 +1202,3 @@
+ #if \
+- (!defined(HEDLEY_EMSCRIPTEN_VERSION) && HEDLEY_HAS_BUILTIN(__builtin_roundevenf)) || \
++ (defined(__GLIBC__) && !defined(HEDLEY_EMSCRIPTEN_VERSION) && HEDLEY_HAS_BUILTIN(__builtin_roundevenf)) || \
+ HEDLEY_GCC_VERSION_CHECK(10,0,0)